Here’s a little script I wrote that lets you do search and replace with confirmation in bash. It uses find so it can look recursively through your files and uses vim to do the actual searching and replacing.

#Usage ./viSearchReplace <original> <new> <filename or directory>
if [ $# -ne 3 ]; then
        echo "Usage:    ./viSearchReplace <original> <new> <filename or directory>"
        exit 1
for i in `find $3 ! -type d ! -name . ! -name .. ! -name $0`; do
    vim -c '%s/'$1'/'$2'/gc' -c 'wq' $i
exit 0

GitHub Link

Check out my second app in the iOS App Store!

Colors: Live!

This is an amazing utility app specially designed for iOS, and capable of recognizing over 1000 colors! Colors: Live! allows you to sample any color visible through the camera on your device…live, and in real time. With over 1000 built-in color names (and more added with each update), you can instantly find the name of any color. But what if the color you are attempting to identify is not built-in? Colors: Live! will happily display the closest possible match! This app is perfect for artists, interior decorators, graphics and web designers, scrapbookers, and anyone who loves color.