Subj : Re: grep question To : comp.os.linux From : bluekarthik Date : Wed Aug 11 2004 08:10 am Tryout. find / -type f -exec grep -H {} ; really a good one. karthik bala guru robertharvey@my-deja.com (Robert E A Harvey) wrote in message news:<5acbdcbf.0408070514.37f6470c@posting.google.com>... > lzman@mindless.com (gnosis) wrote in message news:... > > How can I use grep to search every file on my computer for an expression? > > find / -type f -exec grep -H {} ; > > will locate all regular files from root downwards, and then run the > grep command on it. The -H should display the file nameif grep > succeeds. > > man find > man grep > to check the syntax on your own system. In particular you may need > the odd \ to escape the bracket symbol, depending on how you are > running the command. .