摘要:
(1)统计当前目录下的 *txt 文件du -c -h *txt (2)统计当前目录下的 *txt 文件, 并求出总大小du *txt |awk 'BEGIN{count=0;size=0;} \ {count = count + 1; size = size + $1/1024;} \ END{p... 阅读全文
posted @ 2014-01-20 17:35
emanlee
阅读(4463)
评论(0)
推荐(0)
摘要:
(1)查看某目录下文件的个数: ls -l |grep "^-"|wc -l 或 find ./company -type f | wc -l (2)查看某目录下文件的个数,包括子目录里的: ls -lR|grep "^-"|wc -l (3)查看某文件夹下目录的个数,包括子目录里的... 阅读全文
posted @ 2014-01-20 17:01
emanlee
阅读(2231)
评论(0)
推荐(0)

浙公网安备 33010602011771号