The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 02-04-2007
milo milo is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 32
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.