I am very new to scripting.
I have the following script:
for i in `ls -1 | grep $1 | grep -v $2`
do
x=`echo $i | sed 's/\.New/\.Old/g'`
echo mv $i DONE/$x
done
This is taking files from the directory I am in and changing the name from .New to .Old and then echoing the command to move it to a DONE directory.
So from here I want to know how can I add a little output that asks the user if what outputted to the screen is correct? And if it is go ahead and move and if not just cancel out.
Thank you for ANY replies!!