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 -->
  #7 (permalink)  
Old 02-05-2007
anbu23 anbu23 is offline Forum Advisor  
Registered User
  
 

Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,398
Quote:
Originally Posted by milo
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.
awk -v qt="'" '/SOFTBLOCK/ { print "tappman -c " qt "#" qt "mps.1 -l", NR, "stop" }' cicStatus > runApps