Studying and awk came up.

Spent about an hour and I see some useful commands that extend past what “cut” can do. But really when dealing with printf() format statements is anyone using awk scripts for this?

Or is everyone just using their familiar scripting language. I’d reach for Python for the problems being presented as useful for awk.

  • allywilson
    link
    fedilink
    arrow-up
    1
    ·
    11 months ago

    I don’t tend to use awk in scripts as I do tend to do them in Python, but I do use awk on almost daily basis in one-liners.

    Probably the most common thing for me is so I can read a config file without annoying comments and big line spaces.

    grep -v "^#" krb5.conf | awk NF