Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Multiple file names 1

Status
Not open for further replies.

fathead

IS-IT--Management
Apr 13, 2002
154
How can I change multiple file names with one command???

example:
VOL_000.000
VOL_000.001
etc

change to
VOL.000.000
VOL.000.001
etc

I have 32 to change...

Thanks ahead of time..
 
Hi:

This changes all underscores in the filename:


for i in *
do
mv $i `echo $i|sed -e "s/_/\./g"`
done

Regards,

Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top