Bash scripting: rename upper case file extensions to lower case
Posted by jason on Oct. 25, 2011, 10:18 p.m.
I recently had one of my quick-and-dirty bash scripts broken because I wasn't expecting to receive a bunch of files named *.JPG as opposed to *.jpg. "Yay! I get to improve my bash script!" I thought to myself. Here's a script that will look at the files in ...
Fun with VIM, regex, and PHP
Posted by jason on Oct. 14, 2011, 6:52 p.m.
Introduction
I've been having a lot of fun with regular expressions and vim lately, specifically while programming in PHP. Here are a couple of real-world examples where I saved myself a lot of time and increased my vim+regex skills in the process.
These examples are simple: I just ...