4 ms·
Nice article. I use AWK and sed all the time. I still prefer writing some piped shell commands in one (sometimes lengthy) line than proper perl/python/ruby scri
by przemoc 15y ago
Nice article. I use AWK and sed all the time. I still prefer writing some piped shell commands in one (sometimes lengthy) line than proper perl/python/ruby script, unless it's really needed. Why? It (paradoxically?) seems more natural to me in shell environments (and often can be done much more quickly that way).
Example of AWK usage from my old (currently unmaintained! and insecure!) pcspk project (http://download.przemoc.net/pcspk http://download.przemoc.net/pcspk) is "Siemens ringtone converter":
https://gist.github.com/943386 https://gist.github.com/943386
(actually it requires gawk, which has nice extensions)