Tag Archives: Command Line

Recursively Delete all files with names matching a Regular Expression

Logical Progression of building a command line trick So lets take this step by step… First list all the files Lets get a recursive list of all files in the current directory… 12$ find . …LOTS of files… Find filenames … Continue reading

Posted in find, grep, sed Tagged ,

How can I configure different emails for different Git servers or repositories?

“.gitconfig” in your home directory If you’re like me, and you wanted to configure a different email for different repo’s the first place you look is ~/.gitconfig. This is the default configuration for git for your account. You can set … Continue reading

Posted in Command Line, Git Tagged , ,

Subversion Update: Can’t move .svn/tmp/entries to .svn/entries: Operation not permitted

Just one little change to check in before the day is over, but my working copy needs to be updated first. Then I get this little gem of an error “Can’t move .svn/tmp/entries to .svn/entries: Operation not permitted”. It is … Continue reading

Posted in Source Control Tagged , , , , ,

Find all .htaccess files with a particular php configuration setting

After some testing on a server with a strange setup I needed to find all of the .htaccess files that might contain a particular php configuration directive. The pattern was unique enough that I would have probably just done a … Continue reading

Posted in Command Line, find, grep, Linux, Server Administration, Web Servers Tagged , , , , , ,

How to Clean Up a Mac File in VI with ^M Line Endings

Replacing ^M with new line in VI Have you ever edited a file in VI that was created with a Mac text editor only to find you have one very long line with ^M characters where you are expecting line … Continue reading

Posted in Command Line, Linux Tagged , , , , , ,

OSX Terminal Lock Up or Session Freeze

I usually have at least one terminal window open with a secure shell connection to my server while I’m working. I’m just that kind of crazy person who likes to do some things on the command line. (Ok, most things, … Continue reading

Posted in Linux, OSX, Server Administration, terminal Tagged , , , , , , ,