Archive for May, 2005

replace.sh

Friday, May 13th, 2005

Poor man’s replace in files. Get it. Or see it…

#!/bin/bash
#
# Thu May 12 12:02:01 CEST 2005 * Miguel de Benito <nonick AT 8027 DOT org>
#
# Poor man’s "replace in files"…
#
 
##################
# Load lib
#
if [ ! -f ~/bin/messages.sh ]; then
echo "~/bin/messages.sh is required but not found. Bye…"
exit 1
fi
. ~/bin/messages.sh
 
TMPPATH="/tmp/replace"
 
##################
# Check params
#
if (( ${#@} < 3 […]