[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: GREP



  yes, that's true, are you asking what the '?' is or are you just
stating the fact? anyway, the other command is find, see manpages for
find and grep for more info. find is the one that finds file (based on
name, time last accessed, type and various other criteria), grep
searches the files for string (regular expression). xargs is often
useful in commands like this:

  find / -name '*.h' -print | xargs grep '[sf]printf'

	erik

"Cavaiani, Don" wrote:
> 
> I read where the grep command (along with ? command) can be used to search
> your whole hard drive for any file that has a record containing the
> particular character string that you are looking for.
> 
> --
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null



Reply to: