[olug] ideas??

Daniel Linder dan at linder.org
Fri Jul 15 22:10:26 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Dave Weis said:
> Noel Leistad wrote:
>> Is this something obvious....
>>
>> have a script that calls grep ~phrase~ /path to files/*|tail
>>
>> if I put script in directory in path, I get
>> "/bin/grep: Augument list too long"
>>
>> if I C/P line from script and execute directly in /path to files/ as
>> grep ~phrase~ *
>>
>> I get valid response (at least until file count in directory goes to
>> high)
>
> I usually use something like this:
>
> find path -exec grep -H {} \;
>
> So you could use
>
> find /path/to/files -exec grep -H {} \;
>
> find is a very versatile program and can do substantially more than you
> would think.
>
> dave
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
>


- - - - -
"Wait for that wisest of all counselors, time." -- Pericles
"I do not fear computer, I fear the lack of them." -- Isaac Asimov
GPG fingerprint:9EE8 ABAE 10D3 0B55 C536  E17A 3620 4DCA A533 19BF

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFC2DRSNiBNyqUzGb8RAtppAJ9plg0gbQaze2trk2LT0fHOm+UEmwCcCEqV
eP6dnixWCiQB2Hfukeyl4Qw=
=wVMd
-----END PGP SIGNATURE-----



More information about the OLUG mailing list