grep search to exclude a named folder (2006-05-19 20:51 by jee_stirling #22051)
I would like to construct a grep search that excludes a particular folder in the file system.
I am dumping all my "old" notes in a folder called "Done" and want my searches to look in all the folder except "Done"
Any ideas?
Jim
RE: grep search to exclude a named folder (2006-05-20 12:44 by furnasw #22096)
I had similar wish, my compromise solution was to name the directory zDone, which put it at the end of the search, so searches will find current stuff first, when it gets to the old stuff I know I am done with the search.
RE: grep search to exclude a named folder (2006-05-25 01:06 by jee_stirling #22347)
With a little trial and error I have found a way of doing what I want.
As well as moving notes to a folder I also insert "DONE". The virtual folder now includes two "find" statements. The second one is a case sensitive search for DONE but with the "invert match" option selected.
Notes with the string "DONE" in them are excluded from the virtual folder.
Now if I can just get the "end of line" anchor in grep to work...