image
image

|


Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old November 8th, 2003, 06:22 PM
acidtuch10's Avatar
Registered User
 
Join Date: Sep 2001
Location: MO ~ 63026
Posts: 246
Thanks: 0
Thanked 0 Times in 0 Posts
acidtuch10 is on a distinguished road
Batch rename ?

Question on how to do a rename ( .zip to .mp3) in a directory with multiple files? ..... I have done this using a PC .... but now I don't have access to a PC and I am only using my Mac ~ 10.3~ , But am unsure on how to do a batch rename ... Like ... whatever.zip I would like to equal whatever.mp3

Anyhelp would be great

Thanks

Dave
__________________
Dual 1.25 with a gig o' ram - 2x120 gig drive2, 30 gig, 120 USB 2 drive, superdrive and a 52x USB 2 CDRW 19' Samsung 19' monitor - OSX 10.4.1

B&W G3 400mhz ATA 66 card with two 30 gig drives, 1 gig of ram and a ATI radeon 7000 - OS9 and OSX 10.4.1

ibook 500mhz (Dual USB) 640 ram - OS9 and OSX 10.4.1

acidtuch10 - email = acidtuch10@msn.com
Reply With Quote
  #2  
Old November 8th, 2003, 06:41 PM
dave17lax's Avatar
Inventor of the Egg Wave
 
Join Date: Apr 2002
Location: TX
Posts: 368
Thanks: 0
Thanked 0 Times in 0 Posts
dave17lax is on a distinguished road
I may be out of my league here, but aren't these two different formats entirely? I don't think just renaming would do anything. If you have a hundred zip files that contain mp3's, drag them all to stuffit expander and they will all unzip and create mp3's. If that is what was compressed in the first place.
Reply With Quote
  #3  
Old November 8th, 2003, 07:21 PM
acidtuch10's Avatar
Registered User
 
Join Date: Sep 2001
Location: MO ~ 63026
Posts: 246
Thanks: 0
Thanked 0 Times in 0 Posts
acidtuch10 is on a distinguished road
lets say that I renamed them *.zip for what ever reason.....maybe to anybody searching *.mp3 extension. now that they are on a cd and I have to rename whatever.zip to whatever .mp3 to play them ... hense the batch rename ..... So how do i take multipe files named whatever.zip and change every extension to .mp3 instead of .zip?


Thanks
__________________
Dual 1.25 with a gig o' ram - 2x120 gig drive2, 30 gig, 120 USB 2 drive, superdrive and a 52x USB 2 CDRW 19' Samsung 19' monitor - OSX 10.4.1

B&W G3 400mhz ATA 66 card with two 30 gig drives, 1 gig of ram and a ATI radeon 7000 - OS9 and OSX 10.4.1

ibook 500mhz (Dual USB) 640 ram - OS9 and OSX 10.4.1

acidtuch10 - email = acidtuch10@msn.com
Reply With Quote
  #4  
Old November 8th, 2003, 10:53 PM
Sogni's Avatar
*gone*
 
Join Date: Sep 2001
Posts: 1,574
Thanks: 0
Thanked 0 Times in 0 Posts
Sogni is on a distinguished road
Open terminal, find the directory, and type:
mv *.zip *.mp3

If you've never used Terminal, simply open it (from Applications/Utilities), type:
cd
and drag the folder with the files over to the Terminal, the directory will appear in terminal. Hit enter.

then do the above mv command.

HTH
__________________
I'm not around here (much) anymore...
Look for me in friendlier places.
Reply With Quote
  #5  
Old November 9th, 2003, 12:02 AM
davidbrit2's Avatar
Licensed Computer Geek
 
Join Date: Sep 2000
Location: Michigan, USA
Posts: 787
Thanks: 0
Thanked 0 Times in 0 Posts
davidbrit2 is on a distinguished road
Hmm, that doesn't seem to be a supported usage of mv. Doing this under tcsh can have disastrous results, too. You can get the proper results with this (slightly longer) command. First, launch the bash shell in the Terminal so this works right. Just open Terminal, and enter "bash". Then you use cd followed by the full path of the directory containing the files to rename. You can do this step with drag and drop, as Sogni suggested. It should all look something like this:

Code:
bash
cd <directory>
for file in *.zip; do mv $file `echo $file | sed "s/zip/mp3/"`; done
Any file in the current directory with an extension of .zip will now have an extension of .mp3 when you do this.
__________________
You can have my iBook when you pry it from my cold, dead fingers.
iBook - The computer of choice for the enlightened CS major. Come on Apple, let me do a commercial. ;-)
"An alloc a day keeps the DRAM away!"
Reply With Quote
  #6  
Old November 9th, 2003, 02:22 AM
Sogni's Avatar
*gone*
 
Join Date: Sep 2001
Posts: 1,574
Thanks: 0
Thanked 0 Times in 0 Posts
Sogni is on a distinguished road
Wha? Wow you're right... I swear I've done something similar before (on Linux).
__________________
I'm not around here (much) anymore...
Look for me in friendlier places.
Reply With Quote
  #7  
Old November 9th, 2003, 11:49 AM
davidbrit2's Avatar
Licensed Computer Geek
 
Join Date: Sep 2000
Location: Michigan, USA
Posts: 787
Thanks: 0
Thanked 0 Times in 0 Posts
davidbrit2 is on a distinguished road
Quote:
Originally Posted by Sogni
Wha? Wow you're right... I swear I've done something similar before (on Linux).
I think you might be right, because that looks awfully familiar to me too...
__________________
You can have my iBook when you pry it from my cold, dead fingers.
iBook - The computer of choice for the enlightened CS major. Come on Apple, let me do a commercial. ;-)
"An alloc a day keeps the DRAM away!"
Reply With Quote
  #8  
Old November 9th, 2003, 06:49 PM
Registered User
 
Join Date: Oct 2001
Location: Chesterton, Indiana
Posts: 1,256
Thanks: 0
Thanked 0 Times in 0 Posts
mindbend is on a distinguished road
For those of us not comfortable using the Terminal, I recommend "A Better Finder Rename" for batch renaming. See versiontracker.com and do a search.

I use it all the time, so I find the price well worth it. What's nice is that you can select a bunch of files and right-click to access the rename utility. Nice.

It supports any sort of renaming processing you could imagine. Extensions, file name start/end of files, sequencing by number/alpha, etc.
__________________
"You are" = you're • "It is" = it's • It's really that simple
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 09:51 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.