[Gllug] hostname on CentOS

Tethys sta296 at astradyne.co.uk
Fri Nov 11 11:53:04 UTC 2005


Nix writes:

>find /etc -type f | xargs grep foo)

Even when using xargs, you should still append /dev/null to the end of
the grep. Although xargs reduces the probabilty dramatically, it's still
possible for grep to be passed a single filename in some circumstances,
and hence the /dev/null is needed so you know in which file the match has
been found:

	find /etc -type f | xargs grep foo /dev/null

Tet
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list