3 ms·
Once you realize that awk, while useful, is really just a terrible programming language with terrible syntax that you have to write in a string, with random unr
by stevebmark 10y ago
Once you realize that awk, while useful, is really just a terrible programming language with terrible syntax that you have to write in a string, with random unreadable environment variables to try to hack in useful functionality, then you are finally free.
- Yuioup 10y agoAre there any modern alternatives out there?
- RVuRnvbM2e 10y agoYes. It's ruby. E.g. ls -l | awk '{ print $9 }' vs ls -l | ruby -nae 'puts $F[8]'
- otabdeveloper 10y agoFull-blown scripting languages are a poor fit for livecoding. (Which is really what shell commands are for.)
- cben 10y agoawk is a full blown scripting language too. It has a versatile implied top-level control structure + code golf qualities (which is a plus for livecoding). But it's also crazy that we switch a language when its top-level structure is a good fit.
- otabdeveloper 10y agoI had to go and write one: http://tkatchev.bitbucket.org/tab/ http://tkatchev.bitbucket.org/tab/
- tomcam 10y agoHey, that's nice.
- deleted 10y ago[deleted]