Search notes:

awk example: number of record of current file ($FNR)

awk '{print "Record",FNR ": " $1,$2}' data_1 data_2
Github repository about-awk, path: /FNR_number_of_record_of_current_file/go.sh
one foo
two baz
three bar
Github repository about-awk, path: /FNR_number_of_record_of_current_file/data_1
house
car
spoon
Github repository about-awk, path: /FNR_number_of_record_of_current_file/data_2

See also

awk examples

Index