#!/bin/ksh
#
# Modify to your needs if different from *.txt
#
for THISFILE in *.txt; do
mv $THISFILE $THISFILE.backup
sed 's/findstr/replacestr/g' $THISFILE.backup > $THISFILE
done
Saturday, May 24, 2008
Find and Replace Script
Labels:
Scripting
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment