#!/bin/tcsh

# this script reads the file FILE and replaces every occurence of REPLACE by BY
# the powerfull command sed is used

set FILE=blo.txt
set REPLACE=blo
set BY=blo


sed -e "s/$REPLACE/$BY/g" $FILE  > tmp.txt
cp tmp.txt $FILE
rm tmp.txt


echo 'this is the result file:'
more $FILE
