[olug] ideas??

Vincent Raffensberger Vincent.Raffensberger at dtn.com
Fri Jul 15 19:41:09 UTC 2005


If you're opposed to doing this with find, you could try using the
recursive grep option and omitting the wildcard:

grep --recursive ~phrase~ /path to files/ |tail
If you don't really want to go recursive, you can add
--exclude=.excluded_subdirs

The best solution would likely be using 'find' and 'xargs'.

-----Original Message-----
From: olug-bounces at olug.org [mailto:olug-bounces at olug.org] On Behalf Of
Noel Leistad
Sent: Friday, July 15, 2005 2:13 PM
To: olug at olug.org
Subject: [olug] ideas??

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)


TIA
--
/======================================\
| Noel Leistad                         |
|                                      |
| noel at metc.net                        |
\======================================/

_______________________________________________
OLUG mailing list
OLUG at olug.org
http://lists.olug.org/mailman/listinfo/olug



More information about the OLUG mailing list