Shell效率命令合集

/ Linux / No comments yet / 168 browses
cat >> file << EOF  
$ awk '/a/{++cnt} END {print "Count = ", cnt}' marks.txt

打印超过18个字符的行

$ awk 'length($0) > 18' marks.txt