On Wed, 2003-07-30 at 14:26, Jan Schmidt wrote:

> grep -rln `hostname` /etc 2> /dev/null

Compact but not always correct.  If there are sockets or other random
(solarisy) things in /etc the grep will 'hang' until it sees an EOF from
the file in question.

The find avoids that by giving '-type f'

Though, the grep does work on my linux box.

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to