boards

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