|
From: | ???? |
Subject: | [bug-gawk] The GNU Awk User's Guide:1.1.6> Shell-Quoting Issues |
Date: | Sat, 05 Jan 2013 22:42:31 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
Hi, ?0?2?0?2?0?2 I'm a novice to awk, and find the awk user's guide at gnu web, the link is like below: ?0?2?0?2?0?2 http://www.gnu.org/software/gawk/manual/gawk.html ?0?2?0?2?0?2 My system is ubuntu, details like below: ?0?2?0?2?0?2 ubuntu 12.04.1 LTS ?0?2?0?2?0?2 My gawk version is like below: ?0?2?0?2?0?2 GNU Awk 3.1.8 ?0?2?0?2?0?2 A little issue I encountered is when I read the The GNU Awk User's Guide:1.1.6>?0?2 Shell-Quoting Issues,?0?2 the guide says: ?0?2?0?2?0?2?0?2?0?2?0?2?0?2?0?2?0?2 $ awk "BEGIN { print \"Don't Panic!\" }" ?0?2?0?2?0?2?0?2?0?2?0?2?0?2?0?2?0?2 -| Don't Panic! ?0?2?0?2?0?2 However, when I write the same thing into my termial, ?0?2?0?2?0?2 ?0?2?0?2?0?2 address@hidden:~/tmp$ gawk "BEGIN { print \"Don't Panic!\" }" ?0?2?0?2?0?2 ?0?2?0?2?0?2 bash: !\": event not found ?0?2?0?2?0?2 and I work around this issue using the below command, ?0?2?0?2?0?2 ?0?2?0?2?0?2 address@hidden:~/tmp$ gawk "BEGIN { print \"Don't Panic\!\" }" ?0?2?0?2?0?2 ?0?2?0?2?0?2 gawk: warning: escape sequence `\!' treated as plain `!' ?0?2?0?2?0?2 ?0?2?0?2?0?2 Don't Panic! ?0?2?0?2?0?2 I think '!' is a sensitive sign to bash. ?0?2?0?2?0?2 Best wishes to you from?0?2 Jianchao.li(??????) Shenzhen city, Guangdong province, China Mainland. |
[Prev in Thread] | Current Thread | [Next in Thread] |