4 ms·
one-liners are fun though, especially if you like code golfing.. if you're interested, you could give my tutorial(https://github.com/learnbyexample/Command-lin
by asicsp 8y ago
one-liners are fun though, especially if you like code golfing..
if you're interested, you could give my tutorial(https://github.com/learnbyexample/Command-line-text-processing/blob/master/gnu_awk.md https://github.com/learnbyexample/Command-line-text-processi...) a try
it has over 300 examples..
- ageofwant 8y agoThanks for that mate. I'm a regular customer your work is greatly appreciated.
- asicsp 8y agothanks for the feedback :) happy learning
- natecavanaugh 8y agoI gotta say, I really enjoyed skimming through this, and saving it for future reference. I can already tell there are some basic things that I should've memorized with all the one liners I've used, but because most were cobbled together for the immediate task (and many online forum searches assume a lot of prior knowledge), so t this presentation, and cookbook style references really help me hold the practical benefits in memory alot longer, so thanks again!
- asicsp 8y agothanks, that means a lot to me :) if you are interested in text processing in general, do check the other chapters for grep/sed/perl/sort/paste/pr/etc I learned a lot writing them up and marvel at the speed and functionality provided by these tools.. for many cases, it is lot easier to write a bash script combining these tools than to write a Perl/Python/Ruby script..
- xpil 8y agoAhh, what a useful link! Bookmarking immediately. I use AWK like once a year but when I do, I usually struggle a lot. Your examples are really helpful!
- asicsp 8y agothanks, it's a reference for me as well - not easy to remember all the features and tricks