"Jacob S." <[EMAIL PROTECTED]> writes: > On Sat, 10 Jul 2004 20:03:32 -0500 > "Jacob S." <[EMAIL PROTECTED]> wrote: > >> On Sat, 10 Jul 2004 17:41:58 -0700 >> "Karsten M. Self" <[EMAIL PROTECTED]> wrote: >> >> <snip> >> > - The 'Knoppix' hostname worked its way into a few config files. >> > >> > # find /etc -type f -print0 | xargs -0 grep -il knoppix >> > >> > ...and clean those up. >> >> One question, in hopes that I can learn something; what does the above >> command gain you that "grep -ril knoppix" wouldn't? > ^^^^^^^^^^^^^^^^^ > Oops. That was supposed to be "grep -ril knoppix /etc".
The 'find' command above only works on regular files (not symlinks), whereas 'grep -r' will follow symlinks (and thus could produce duplicates or get into recursive loops). -- You win again, gravity! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]