3 ms·
The way I look at it, awk is sort of like sed except it can maintain state between records: https://two-wrongs.com/grep-sed-and-awk-the-right-tool-for-the-job.h
by kqr 3y ago
The way I look at it, awk is sort of like sed except it can maintain state between records: https://two-wrongs.com/grep-sed-and-awk-the-right-tool-for-the-job.html https://two-wrongs.com/grep-sed-and-awk-the-right-tool-for-t...
This can be used to make a state machine parser: https://two-wrongs.com/awk-state-machine-parser-pattern.html https://two-wrongs.com/awk-state-machine-parser-pattern.html