My shell script iterates on a text file to process another file. This takes around 2 minutes to finish. By the time this script finishes its task I want to print some random data on console to entertain user. How can I do this.
My code is:
while read line
do
origVal=`echo $line | awk '{ printf $1 }'`
newVal=`echo $line | awk '{ printf $2 }'`
sed "s/$origVal/$newVal/g" File > tmpFile
mv tmpFile File
done < ConfigFile.txt