j******e 发帖数: 64 | 1 【 以下文字转载自 Linux 讨论区 】
发信人: justcome (ANewOne), 信区: Linux
标 题: how to count the total number of lines
发信站: BBS 未名空间站 (Wed Apr 25 16:24:41 2007), 转信
of all the files in a directory of directory
say
a/d1/
a/d2/
...
each d* contains multiple files. thanks. | t*****g 发帖数: 1275 | 2 ls a/d*/* |xargs wc -l
【在 j******e 的大作中提到】 : 【 以下文字转载自 Linux 讨论区 】 : 发信人: justcome (ANewOne), 信区: Linux : 标 题: how to count the total number of lines : 发信站: BBS 未名空间站 (Wed Apr 25 16:24:41 2007), 转信 : of all the files in a directory of directory : say : a/d1/ : a/d2/ : ... : each d* contains multiple files. thanks.
|
|