推荐: blog.csdn.net/aquester https://github.com/eyjian https://www.cnblogs.com/aquester http://blog.chinaunix.net/uid/20682147.html
全部博文(594)
分类:
2008-08-07 13:01:42
aquester2008-08-07 13:05:02
http://blog.chinaunix.net/u2/64804/showart.php?id=1114097 sed -n '$=' filename grep '.*' -c filename perl -ne 'END {print "$i"} ++$i' filename perl -ne 'END {print $.."\n"}' filename awk 'END{print NR}' filename awk '{print NR}' filename |tail -n1 grep -n "" filename|awk -F: '{print '}|tail -n1 wc -l filename|awk '{print }' cat filename |wc -l ruby -e 'p open("filename").read.count("\n")'