|
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.
|