View Single Post
  #1 (permalink)  
Old 02-24-09, 10:38
wrabanal wrabanal is offline
Registered User
 
Join Date: Feb 2009
Posts: 6
Post How i can print single quota in awk print command

I have the follow command

ls -l | grep 'Feb 21' | awk '{print "awk /SESSIONID:/ {print $0} "$9 ">> join.file" }'> a.a

The commando run sucessfully

But i need put single quota in print

Like that

ls -l | grep 'Feb 21' | awk '{print "awk '/SESSIONID:/ {print $0}' "$9 ">> join.file" }'> a2.a

and begin '/SESSIONID
and the end $0}'

But if i try run this command.. i have an error

oracle [Amadeus1]% ls -l | grep 'Feb 21' | awk '{print "awk '/SESSIONID:/ {print $0}' "$9 ">> join.file" }'> a2.a
awk: Cannot find or open file {print.

The source line number is 1.
oracle [Amadeus1]%


how i can put this single quota in awk print command

Thanks
Reply With Quote