Results 1 to 2 of 2
When I grep a file find the system by "grep -i "edp" ./*" , then it pop the below message , I think it is because too many files in ...
- 05-24-2005 #1Just Joined!
- Join Date
- Feb 2005
- Posts
- 77
can't grep in the RH system
When I grep a file find the system by "grep -i "edp" ./*" , then it pop the below message , I think it is because too many files in the system, could suggest how to fix it ? thx.
bash: /bin/grep: Argument list too long
- 05-24-2005 #2Linux Engineer
- Join Date
- Feb 2005
- Posts
- 1,044
Re: can't grep in the RH system
How many files do you have in your current directory? "ls | wc -l" will tell you.
Originally Posted by ust
You could use xargs to deliver large quantities of arguments to programs, "man xargs" for more details.
Also, you could just use * instead of ./* to get your file list.


Reply With Quote