Jul 16, 2007 #1 vlz IS-IT--Management Aug 11, 2002 56 IL Hi, Please let me know what is wrong here(I use tcsh): alias abc "awk -F= '{print $2}' File|awk -F\" '{print $2}'" I get unmatched ". How can I define double-quote separator in the second awk? Thanks in advance, Vadim
Hi, Please let me know what is wrong here(I use tcsh): alias abc "awk -F= '{print $2}' File|awk -F\" '{print $2}'" I get unmatched ". How can I define double-quote separator in the second awk? Thanks in advance, Vadim
Jul 16, 2007 #2 columb IS-IT--Management Feb 5, 2004 1,231 EU I can't really test this but try Code: alias abc "awk -F= '{print $2}' File|awk [b]-F\\\"[/b] '{print $2}'" Ceci n'est pas une signature Columb Healy Upvote 0 Downvote
I can't really test this but try Code: alias abc "awk -F= '{print $2}' File|awk [b]-F\\\"[/b] '{print $2}'" Ceci n'est pas une signature Columb Healy
Jul 16, 2007 Thread starter #3 vlz IS-IT--Management Aug 11, 2002 56 IL I get the same error :-( Upvote 0 Downvote
Jul 16, 2007 #4 hoinz MIS Jan 29, 2004 944 DE maybe this: -F"\\\"" and by the way, you may need a need a similar construct for $2 as well; try this: print "\$"2 hope this helps Upvote 0 Downvote
maybe this: -F"\\\"" and by the way, you may need a need a similar construct for $2 as well; try this: print "\$"2 hope this helps
Jul 16, 2007 #5 PHV MIS Nov 8, 2002 53,708 FR I thought all csh flavors was buggy. Why not using a standard POSIX shell (aka Korn shell) ? Upvote 0 Downvote