Today I needed to come back again to something I had done nearly a half year ago without being able to remember where all I had made changes to get it running once …. duh ….
Yeah I know, someone would call that a bad documentation! And yes, normally I create a logfile writing down all changes I make, giving them a timestamp and a short remark about what I have done. Just in this case I didn’t expected I would be foreced to come back to it ever!
The good news is that as a behavior I always leave a short inline comment within the code marking begin and end of my tweaks together with a “changed by …”.
So there was a good change to find all my modifications again - just it needed to be done quickly ….
Now being on UNIX there is a great and easy way to do with the command find. My only problem about is that I never remember the exact syntax to do that instantly again and so I thought I write it down her for the next time I need it:
find . -exec grep searchstring * {} \;
Isn’t it easy?!
(to remember I mean!)
For more ideas about to use -exec combined with find, check this site here as for it helped me heaps to remember!

Leave a Reply