3 Mar
2006
3 Mar
'06
01:39
Bruce, On Thursday 02 March 2006 17:14, Bruce Marshall wrote:
On Thursday 02 March 2006 20:03, Peter Sutter wrote:
I am trying to use grep/egrep to find a file in the /tmp directory. All I get back is
~# grep -R "a1aaaa" /tmp/* -bash: /usr/bin/grep: Argument list too long
...
Peter
I'm not expert on the CLI but I think:
grep -R "a1aaaa" "/tmp/*"
Would do it. The '*' expands into a list of all the files and makes for a loooong string.
Nope. All that does is keep grep from operating recursively, but that's moot because it never gets invoked. The argument list for this invocation is precisely the same as that in the original form tried by the OP. Randall Schulz