文件统计

wc 命令

  -c, --bytes            print the byte counts
  -m, --chars            print the character counts
  -l, --lines            print the newline counts
  -L, --max-line-length  print the length of the longest line
  -w, --words            print the word counts

统计文件夹下文件个数
ls |wc -l

猜你喜欢

转载自linest.iteye.com/blog/1289317