![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | 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. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to make a line BLINKING in output and also how to increase font size in output | mail2sant | Shell Programming and Scripting | 3 | 04-14-2008 08:30 AM |
| top output | new2ss | UNIX for Advanced & Expert Users | 4 | 03-11-2008 04:58 AM |
| awk output | useless79 | Shell Programming and Scripting | 3 | 09-03-2007 11:21 AM |
| FTP Output | lindeng | UNIX for Dummies Questions & Answers | 9 | 02-10-2004 10:18 PM |
| ps output | Shobhit | UNIX for Advanced & Expert Users | 2 | 03-10-2002 09:45 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
how to get output by awk
Hi all,
I have an input file like trk 1 soft trk 1 get trk 1 get trk 1 soft Want to have output file contains line number of lines which have "soft" string from input like 1 4 Then, create new file from output to ui 1 stop ui 4 stop Tried using with awk, still not got result. Appreciate all your help. Thanks. |
|
||||
|
It's working fine now. your output is what I expected. I got mistake when check output by echo command.
details expected output file I want is tappman -c '#'mps.1 -l 1 stop tappman -c '#'mps.1 -l 4 stop so I used below command awk '/SOFTBLOCK/ { print "tappman -c '#'mps.1 -l", NR, "stop" }' cicStatus > runApps But it didn't work since command didn't accept ' ' covered #. Tried to use \ and "" to cover ', but it still not work. Thanks for ur kind help. Last edited by milo; 02-04-2007 at 11:49 PM.. |
|
||||
|
Quote:
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|