Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-03-2007, 01:11 AM   #1
Registered: Nov 2004
Location: sweden
Distribution: Arch
Posts: 67

Rep: Reputation: 15
standard grep question. "The parameter list is too long"

I have a large number of files, sometimes > 1000, in which I want to search for a number. The following returns in error "the parameter list is too long":

grep 12345 /my/path/*

I cannot limit the number of files by using something like "A*" because I need to search all files. So, my question is how would I do to get around the "parameter list is too long" error?

I am using korn-shell on AIX, btw...
Old 07-03-2007, 01:43 AM   #2
Registered: Nov 2004
Location: sweden
Distribution: Arch
Posts: 67

Original Poster
Rep: Reputation: 15
I think I found an answer to my own question:

find /my/path/ -exec grep 12345 {} \;

...but is there any other way? Just curious


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert "unsigned long long" to "char pointer"? novicehacker Linux - Kernel 1 11-20-2006 12:57 AM
Bios config: "ahci" or "standard ide" for a sata drive ? Danodare Slackware 1 11-05-2006 12:31 AM
Zip gives error "-bash: /usr/bin/zip: Argument list too long" konathamsrinu Programming 3 07-06-2006 10:08 AM
the problem of "args list too long" Min Chen Linux - General 3 03-27-2006 01:03 AM
"Undeleting" data using grep, but get "grep: memory exhausted" error SammyK Linux - Software 2 03-13-2004 03:11 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration