Results 1 to 3 of 3
Hey, how can I find a specific text in any file on my system?
Ive tryed this Bash Line (script)
su root -c "time grep "find / "|cowsay"
And Ive ...
- 09-11-2007 #1
Find text in files
Hey, how can I find a specific text in any file on my system?
Ive tryed this Bash Line (script)
su root -c "time grep "find / "|cowsay"
And Ive even tryed it without the Fancy Cow
su root -c "time grep "find / ""
Ah, well let me just drop down everything Ive tryed:
Oh, now I might thought of somethingCode:su root -c "time grep "find / "|cowsay" su root -c "time grep "find / " grep "find / " grep "find / *" grep | find / * find / * grep
Damn doens work either :/Code:#!bin/bash find / >> TempListofFiles grep cat TempListofFiles rm TempListofFiles
Well, how to do this?
Since Ive spread one file all over the place and I need to remove them all -.-'
Thanks,
Robin
- 09-11-2007 #2Linux User
- Join Date
- Jun 2007
- Posts
- 318
To check every file on the system:
Code:find / -type f -exec grep -l "text to look for" {} \;
- 09-11-2007 #3Linux User
- Join Date
- Aug 2006
- Posts
- 458


Reply With Quote
