3 ms·
Note that the first code he writes on the page awk "{print $0}" does not work. Awk programs need single quotes to prevent bash expansion.
by awakeasleep 16y ago
Note that the first code he writes on the page
awk "{print $0}"
does not work. Awk programs need single quotes to prevent bash expansion.
- beza1e1 16y agoDepends on the shell one uses, i think. On the other hand, who doesn't use bash these days.
- silentbicycle 16y agoSee: http://news.ycombinator.com/item?id=1669409 http://news.ycombinator.com/item?id=1669409 (Pet peeve of mine.)
- b3n 16y agoAssuming you're using the Bash shell.
- hernan7 16y agoSame thing happens on Bourne shell, or Korn shell.
- gregable 16y agoDoh. Fixed.
- ralph 16y agoThis can be simplified. :-) awk 1