Category: Linux Text Processing

awk NR FNR difference

Linux awk command can use variables NR and FNR to process multiple files. NR : ordinal number of the current record, multiple files self-increase FNR...

AWK tutorial: awk sort uniq

In daily development, we often use awk command to cut and sort log file columns and count them. awk sort uniq count example awk column...

AWK tutorial: awk workflow

AWK follows a simple workflow − Read, Execute, and Repeat. BODY block This block is the core of the awk command. It consists of three...

awk system batch operation

1. use awk command batch creation of files awk 'BEGIN {do {++i; system("touch file_num_" i "_test") } while (i<9) }' .........