simple question about mv

VLD/VMB moss at BRL.MIL
Sat Jan 28 06:45:54 AEST 1989


< I know this is simple, but then again, so am I.  What if I want to mv a bunch
< of files with the same suffix to another suffix. The following does not
< work
< 
<    mv *.flip *.flop
Well, this should work under a Bourne shell:
$ for i in *.flip
> do	mv $i `basename $i .flip` .flop
> done
$
-moss



More information about the Comp.unix.questions mailing list