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 -->
  #5 (permalink)  
Old 02-04-2007
milo milo is offline
Registered User
  
 

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