On Wed, Feb 01, 2006 at 04:42:19PM +0000, Anne Wilson wrote: > I need to list all files that refer to my network-name, but I can't work > out a command to do it. I thought I would have to cat everything, > piping through grep 'string', but that doesn't search recursively, the > help-file doesn't show a recursive flag, and I'm not sure that it would > actually give me the filenames anyway. > > Help, please? > > Anne > -- > Registered Linux User No.293302 (http://counter.li.org/) Do this as root. To see a list of filenames containing the target string: find / -name \* -exec grep -l 'put your string here' {} \; if you want to see the actual file content containing the string, simply remove the -l option from grep. Fred -- ---- Fred Smith -- fredex@xxxxxxxxxxxxxxxxxxxxxx ----------------------------- "Not everyone who says to me, 'Lord, Lord,' will enter the kingdom of heaven, but only he who does the will of my Father who is in heaven." ------------------------------ Matthew 7:21 (niv) -----------------------------
Attachment:
pgpdtvd7MCnQH.pgp
Description: PGP signature