One-liner that I use almost daily when working with source files (put it on separate lines for readablity):


find . -type f -not -regex '.*/.svn/*.*'
-exec grep -Hn --colour 'SEARCH_STRING '{}' \;

You see, when you need to find some string within source files, and you don’t want to see duplicates coming from .svn folders, this one-liner does the trick – .svn directories are ignored from search.

, ,

More a note to myself than a regular post: if you need to tweak PHP settings per vhost on your dedicated server, you can do it easily.

Read the rest of this entry

, , ,