- Added example for
NF
value when input line doesn't contain the input field separator or if it is empty. - Added example which uses both
nextfile
andENDFILE
. - Added example for working with floating-point numbers according to locale formatting.
- Clarified use of
\0
withgensub
function. - Updated error message for file not found.
- Added further reading links for regexp metacharacter escaping and
NR==FNR
alternatives.
- Added note regarding use of
NR==FNR
if the first file is empty - Added note for
split
function when the field separator is the same as defaultFS
- Simplified one of the examples for paragraph mode
- Updated exercise solutions as well for this usecase
- Updated timing data for speed comparison examples, added
mawk
results as well - Corrected various typos, improved descriptions, comments, external links, etc
- Added link to exercise solutions
- Corrected typo in a solution
- Two of the buffer examples simplified
- Corrected line anchor explanations to be referred as string anchor instead
- Clarified BRE vs ERE difference for line anchor escaping
- Added workaround for epub version for iBooks
- For more detailed view of changes, see the commit changes for the markdown source file
- Added exercises
GNU awk
version updated to5.1.0
- Role of
IGNORECASE
forFS
,FPAT
andRS
- Alternation priority for same length matches
- Using escape sequences for regular expression metacharacters
- Corrected multiline code snippets and added chapter sub-headings for clarity
- Added gotcha for using code in replacement section of substitution functions
- Corrected various typos, improved descriptions/comments/examples/etc
- Added epub version of the book
- For more detailed view of changes, see the commit changes for the markdown source file
- First version