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

Re: [cobalt-users] Ordinary linux question



Bob Lenaerts wrote:
> I know a word in a file, but don't know the filename.
> EX: i need to find    sbin    WITHIN a html file.
> 
> How ?
> Find /home/sites -name sbin does not work

You need to use two commands: (one line though)

find /home/sites -name '*.html' | xargs grep sbin

--anders