3 ms·
Awk predates Excel (and therefore LibreOffice), so the original point was that...there was no GUI spreadsheet application to use instead. 32-bit Excel used to
by fian 7y ago
Awk predates Excel (and therefore LibreOffice), so the original point was that...there was no GUI spreadsheet application to use instead.
32-bit Excel used to have a limit of around 65 000 rows. 64 bit Excel is just over 1 000 000 rows. Both of these limits are commonly exceeded.
Excel requires all the data to be in memory. Awk processes line by line so requires less memory.
Awk scripts can easily be incorporated in a chain of other commands.
Version comparison is easier with Awk scripts as they are text based not binary (xls) or compressed XML (xlsx) files.
Awk can be combined with sed, uniq, sort and other tools as one-liners or in shell scripts for fast and powerful data analysis or transformation. These tools are available by default on my Unix-like operating systems.
Nowadays though, scripting languages like Perl (inspired by Awk), Python or Ruby might be used instead of Awk.
Awk has been a handy tool for me professionally a number of times when I had large amounts of textual data to analyse. I have used it many times to transform data to pass to Oil and Gas engineers who were unable to handle the raw data in Excel.