Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-24-2005, 02:10 AM
|
#1
|
Senior Member
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130
Rep:
|
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, 04:55 AM
|
#2
|
Member
Registered: Jul 2004
Location: The Netherlands
Distribution: Mandrake, Knoppix, Coyote Linux, RedHat
Posts: 354
Rep:
|
Perhaps something like
Code:
find ./* -iname edp
would work?
|
|
|
05-24-2005, 05:03 AM
|
#3
|
Senior Member
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130
Original Poster
Rep:
|
thx reply , but your method still not work.
|
|
|
05-24-2005, 05:24 AM
|
#4
|
Member
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273
Rep:
|
I would propose
Code:
find . -maxdepth 1 -type f -print0 | xargs -0 grep -i edp
Groetjes,
Kees-Jan
|
|
|
05-24-2005, 08:26 AM
|
#5
|
Member
Registered: May 2005
Posts: 378
Rep:
|
Code:
ls | xargs grep -i edp
should do the same as the failing command (apart from failing, of course!).
|
|
|
05-24-2005, 08:27 AM
|
#6
|
Member
Registered: May 2005
Posts: 378
Rep:
|
Quote:
Originally posted by ust
thx reply , but your method still not work.
|
That's because it's the shell wildcard expansion that's blowing the argument list space in the case of both commands.
|
|
|
All times are GMT -5. The time now is 02:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|