r*****r 发帖数: 397 | 1 In a directory, I have 10,000 files, and I want to filter away some bad
files based on a specific criteria, for
instance, the score.It's very easy to use grep but the problem is if the
file numbers are huge, I'll get
"argument list too long" error.How should I avoid this problem?Thanks. | k****f 发帖数: 3794 | 2 find . -name '*' -exec grep -l "your filter" \;
【在 r*****r 的大作中提到】![](/moin_static193/solenoid/img/up.png) : In a directory, I have 10,000 files, and I want to filter away some bad : files based on a specific criteria, for : instance, the score.It's very easy to use grep but the problem is if the : file numbers are huge, I'll get : "argument list too long" error.How should I avoid this problem?Thanks.
|
|