On Tue, Apr 24, 2001 at 10:01:50AM -0700, Alan Halls wrote:
> Hi,
>  Ok, it is a little off the Mysql topic but I need to know something and I
> know
> someone out there can help. I need to do a search on a UNIX box using either
> egrep or another command that will search for all occurances of a link. we
> have updated part of our website and want to make sure there are no dead
> links, a worthy goal don't you think. We need to do a text-based search that
> includes sub-directories. Anyone know the command?

As another poster pointed out, some versions of grep have the -r option
to grep recursively in subdirs.  More portable, however, is the following:

  find /path/to/your/directory -type f | xargs grep -i 'your pattern'

See the manpages for 'find' and 'xargs' or the info page on 'findutils'
for more information.

G'luck,
Peter

-- 
I've heard that this sentence is a rumor.

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to