bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

The rule of using '{}' (awk)


From: Peng Yu
Subject: The rule of using '{}' (awk)
Date: Fri, 21 Aug 2009 10:25:44 -0500

Hi,

I get the following syntax error. The error is fixed if I remove the
out most '{}'. I am wondering what the rule is to use '{}' in awk.,

Regards,
Peng

$ awk '{!/#.*/ {print $1,$2,$3}}' data.txt
awk: {!/#.*/ {print $1,$2,$3}}
awk:         ^ syntax error




reply via email to

[Prev in Thread] Current Thread [Next in Thread]