|
|
|
|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
output a particular string
Hi experts,
I have many files it contains like below. GET:SUB:MSI,7601; RESP:0:SISDN,72030067:MSI,7601:T11,1:T21; GET:SUB:MSI,7602; RESP:0:SISDN,72030068:MSI,7602:T11,1:T21; GET:SUB:MSI,7603; Resp:1000; GET:SUB:MSI,7604; Resp:1000; GET:SUB:MSI,7605; RESP:0:SISDN,72030069:MSI,7605:T11,1:T21; How can i make the output as- In fact, i need to fetch the strings that comes after MSI:7602; And if Resp:[^0] then "none" 7601 7602 none none 7605 //purple Last edited by thepurple; 12-16-2008 at 05:57 AM.. |
| Sponsored Links | ||
|
|
|
|||
|
okay..I applogies I missed the point to make u understand.
in fact, i have to only manupulate on- "RESP:0:SISDN,72030067:MSI,7601:T11,1:T21;" i need to only fetch the MSI from RESP:0. if Resp:1000 i.e Resp not equal to zero then print None. |
| Sponsored Links |
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| grep string and output filename | happyv | Shell Programming and Scripting | 3 | 11-20-2007 12:16 AM |
| Converting gettimeoftheday output to string | p_aishwarya | UNIX for Dummies Questions & Answers | 1 | 10-21-2007 10:13 AM |
| output only numbers from mixed string | nortypig | Shell Programming and Scripting | 10 | 08-29-2006 11:30 PM |
| output string message to pipe | princelinux | Programming | 3 | 08-18-2006 03:09 AM |
| output string in reversing order | ccp | Shell Programming and Scripting | 3 | 11-19-2005 11:05 AM |