21 votes

awk: a tiny, useful programming language

2 comments

  1. vord
    Link
    And awk is fast. For anybody who hasn't seen this one yet: https://adamdrake.com/command-line-tools-can-be-235x-faster-than-your-hadoop-cluster.html TL;DR: Using find, xargs, and awk, 3.46 GB of...

    And awk is fast. For anybody who hasn't seen this one yet:

    https://adamdrake.com/command-line-tools-can-be-235x-faster-than-your-hadoop-cluster.html

    TL;DR: Using find, xargs, and awk, 3.46 GB of data was processed in 18 seconds on a laptop.

    The more I use GNU shell tools, the less I reach of other stuff. I think the only exception is when I need to deal with doing web calls more complex than can be handled by curl.

    Edit: And Ansible. Ansible is amazing so long as you're not trying to backport it onto systems built without Ansible.

    9 votes
  2. mxuribe
    Link
    I've heard about and seen small snippets of awk in the past...But , wow, this article did a really nice job of showing how handy awk could really be...That is, handy without being too tough to...

    I've heard about and seen small snippets of awk in the past...But , wow, this article did a really nice job of showing how handy awk could really be...That is, handy without being too tough to dive into. I guess i'll be diving into awk a little more. (I have a little project coming up for work that involves manipulating data files.)

    1 vote