由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - How to fix this? /bin/ls: Argument list too long
相关主题
what's wrong with this scripts?variable passing?如果python command line positional arguments 里有些是运算,那这种argument 该怎么处理?
should the .dll and .lib have the same name?a PERL opendir/readdir question
how to include header file in other directory?Usage of Grep???help!!!
请教,关于g++ -l的问题请问call by name是不是C编译器都没实现
Listing files under a directory in C++matlab: how to set defaul value for function arguments
windows 7 file chooser 的问题static如何作为函数?
linux, find command questionShell script 问题
how to proof (转载)来几个C++测试题
相关话题的讨论汇总
话题: argument话题: list话题: long话题: too话题: bin
进入Programming版参与讨论
1 (共1页)
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 的大作中提到】
: 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.

1 (共1页)
进入Programming版参与讨论
相关主题
来几个C++测试题Listing files under a directory in C++
Help: How to pass a cell matrix as a variable in the arguments of a VBA functionwindows 7 file chooser 的问题
two c++ interview questions! (转载)linux, find command question
C -- sample without replacementhow to proof (转载)
what's wrong with this scripts?variable passing?如果python command line positional arguments 里有些是运算,那这种argument 该怎么处理?
should the .dll and .lib have the same name?a PERL opendir/readdir question
how to include header file in other directory?Usage of Grep???help!!!
请教,关于g++ -l的问题请问call by name是不是C编译器都没实现
相关话题的讨论汇总
话题: argument话题: list话题: long话题: too话题: bin