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>"
for i in `find $3 ! -type d ! -name . ! -name .. ! -name $0`; do
vim -c '%s/'$1'/'$2'/gc' -c 'wq' $i
Check out my second app in the iOS App Store!
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.
A Postfix Calculator implemented using a Stack in Java:
This is the first post of my coding blog. I’ll be posting Android/iOS code snippets and How-To’s.