simple question about mv
Eiger Richard
eiger at unigs.CH
Thu Feb 9 07:49:28 AEST 1989
A simple way to solve the often found problem of renaming some files
suffixes can be solved as follows (at least under UNIX V):
for name in *.flip
do
mv $name `basename $name .flip`.flop
done
which will rename all files *.flip in such with the extension .flop.
The command basename can be used for other tasks as well. Please check the
user's manual (1).
Best luck Richard Eiger
More information about the Comp.unix.questions
mailing list