Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

field separator

Status
Not open for further replies.

vlz

IS-IT--Management
Aug 11, 2002
56
0
0
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
 
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
 
I get the same error
:-(
 
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
 
I thought all csh flavors was buggy.
Why not using a standard POSIX shell (aka Korn shell) ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top