I typed a comment in a file (using "#" of course) on my linux server, but i can't remember where i put it. is there a way to find a term, word or directive (such as <Limit>) that i've used?
I typed a comment in a file (using "#" of course) on my linux server, but i can't remember where i put it. is there a way to find a term, word or directive (such as <Limit>) that i've used?
Use grep.
That will search starting at '/' recursively through all files, ignoring binary files. It will take a while.Code:grep -r -I 'string you're searching for' /*
If you remember which directory you put the file in, or the extension of the file, that will speed up the search.
For more options,
Code:man grep
Last edited by Derek Karpinski; March 27th, 2013 at 06:05 PM.
It helps to use your initials in your comments:
# TFG 27 Mar 13 Cheesy work around, because I'm too lazy to refactor this code.
#
-------------------------------------
Oooh Shiny: PopularPages
Unumquodque potest reparantur. Patientia sit virtus.
Bookmarks