It’s a Linux command-line program (awk). It’s pre-installed practically everywhere, it’s very powerful for string processing, but it also uses a fairly complex syntax.
As a result, not many people know how to really make use of it, but awk '{print $1}' is something you encounter fairly quickly when you need to get the first word in each line.
It’s a Linux command-line program (
awk
). It’s pre-installed practically everywhere, it’s very powerful for string processing, but it also uses a fairly complex syntax.As a result, not many people know how to really make use of it, but
awk '{print $1}'
is something you encounter fairly quickly when you need to get the first word in each line.