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