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

Re: very quick question :)



Andrew McRobert said:
> does anyone know the syntax of the 'grep' command to check all files on a
> machine for a pattern e.g. "lawpc34", I've been trying:
> 
> grep -r / -e lawpc34 -H &> lawpc34.log &
> 
> but that doesn't seem to work

grep requires that the last argument be a filespec telling it where to start.
Try

grep -r -H lawpc34 /* > lawpc34.log &

-- 
"Two words: Windows survives." - Craig Mundie, Microsoft senior strategist
"So does syphillis. Good thing we have penicillin." - Matthew Alton
Geek Code 3.1:  GCS d- s+: a- C++ UL++$ P+>+++ L++>++++ E- W--(++) N+ o+ !K
w---$ O M- !V PS+ PE Y+ PGP t 5++ X+ R++ tv- b++ DI++++ D G e* h+ r++ y+



Reply to: