分类:
2009-12-25 17:41:15
|
b.awk:
|
FS The input field separator, a space by default.
RS The input record separator, by default a newline.
NF The number of fields in the current input record.
NR The total number of input records seen so far.
OFMT The output format for numbers, "%.6g", by default.
OFS The output field separator, a space by default.
ORS The output record separator, by default a newline.
运行 $awk -f b.awk a.txt
|