Part of the Pleasure of Linux is the challange. So here's the challenge. Study the use of grep and sed, and their use in a bash script.
Then, in your sudo code, change
Quote:
do
rename *.bas-new *.bas
done
|
to
Quote:
do
grep bas.new # to select only those lines with the regular expression bas.new
sed -e <substitute /bas.new/bas/g> # to change bas.new to bas
done
|