Re:What I learned from others' shell scripts
by Torgo on Wednesday August 14, 2013 @12:50PM
(#6212616)
At my first "real" job I used to work on a RS-6000, a couple hundred-grand machine. The admin wouldn't install _anything_ non-stock other than a JVM on it. It taught me how to get around using only BSD Unix tools and Bourne Shell. It was an enormous pain in the butt, but what I learned has been utterly invaluable over the course of my career.
Re:What I learned from others' shell scripts
by reidrac on Wednesday August 14, 2013 @02:13PM
(#6213213)
Well, it's more like: shell -> awk -> perl -> python.
I use awk from time to time, specially when I need to process a file line by line and the task is too simple to use python (ie. an awk one-liner will do!).
Re:What I learned from others' shell scripts
by noonespecial on Wednesday August 14, 2013 @03:24PM
(#6213640)
Very true. I really need to sharpen my awk/sed/grep skills, but damn, some of those 400 character awk "one-liners" hurt my brain.
Perl regexes are rightfully known for being cryptic but those awk statements make me cry for my mama.
shell -> perl -> python.
On OpenWRT systems, sometimes even microperl won't fit. All you've got is shell. (and sh only, none of this fancy bash stuff(1)) Its good to be able to do things at many levels.
(1) http://stackoverflow.com/questions/5725296/difference-betwee...