Hi
I was just wondering if anyone had a ready made script that would allow me to search all the text
in a series of fies for a specific text item and then list what files the item has been found in.
Thanks
Derek
Hi
I was just wondering if anyone had a ready made script that would allow me to search all the text
in a series of fies for a specific text item and then list what files the item has been found in.
Thanks
Derek
i just use this function in my .profile
and use it for searching everything from the current directory down.
lookfor() {
grep -EiIrl "$" ./
}
then in terminall i just type
$ lookfor string im looking for
say i was looking for the string “foo bar” , i would type
$ lookfor foo bar
if you want to right something yourself then grep would be your best way (if your dealling with text files)
else i think you may want to look at using spotlights meta data