Fedora Linux Support Community & Resources Center
  #1  
Old 7th September 2005, 06:07 PM
xamox's Avatar
xamox Offline
Registered User
 
Join Date: Apr 2005
Age: 36
Posts: 14
Batch File Rename

Does anyone know of any batch file renaming software for linux? I'm sure I could do what I want with the command line, but I would prefer a GUI. I have not come across any. I know there is for photo's but I want it for file, like say my mp3 collection. I want to rename a bunch of them instead of "01_artist_songtitle.mp3" to "Artist - 01 - Song Title.mp3" for the entire directory. I have not been able to come across any software like this for linux. When I used to use windows that I have used software to accomplish this. I could probably try to use WINE and emulate some windows software but I was wondering if there was anything native to linux? or possibly java based.

This is an example of what I want.


thanks,
-xamox
Reply With Quote
  #2  
Old 7th September 2005, 06:29 PM
Twey's Avatar
Twey Offline
Registered User
 
Join Date: Mar 2005
Location: England
Posts: 867
Wait right here and I'll write you one
It's one command. rename <from> <to> <in files>
__________________
Twey

Last edited by Twey; 7th September 2005 at 06:32 PM.
Reply With Quote
  #3  
Old 7th September 2005, 06:31 PM
xamox's Avatar
xamox Offline
Registered User
 
Join Date: Apr 2005
Age: 36
Posts: 14
hahaha, sure thing.
Reply With Quote
  #4  
Old 7th September 2005, 06:52 PM
Twey's Avatar
Twey Offline
Registered User
 
Join Date: Mar 2005
Location: England
Posts: 867
There. Uses Zenity. gunzip it first, had to gzip it so the forum would let it through. This is a total of five lines

/EDIT: Now with file selection dialogue! Woop.
Attached Files
File Type: gz filerename.gz (161 Bytes, 222 views)
__________________
Twey

Last edited by Twey; 7th September 2005 at 06:58 PM.
Reply With Quote
  #5  
Old 8th September 2005, 02:29 AM
xamox's Avatar
xamox Offline
Registered User
 
Join Date: Apr 2005
Age: 36
Posts: 14
Alright, thx dude, I didn't even know anything like this existed. I don't think you updated your code for the file selection dialog. Thanks again.
Reply With Quote
  #6  
Old 8th September 2005, 02:08 PM
jgraber Offline
Registered User
 
Join Date: Sep 2005
Age: 35
Posts: 7
Maybe krename (http://www.krename.net) help you.
Reply With Quote
  #7  
Old 9th September 2005, 03:36 AM
macgregor Offline
Registered User
 
Join Date: Jul 2005
Posts: 299
It should be:
Code:
#!/bin/bash
from=`zenity --entry --entry-text "Replace this..."`
to=`zenity --entry --entry-text "With this"`
for i in `zenity --file-selection --multiple --separator=" "`
do
	rename $from $to $i
done
the word "seperator" should be "separator" (only one "e")
Make that change and it works fine.
__________________
I'll give up Linux when they pry it from my cold, dead hands.
Reply With Quote
  #8  
Old 12th March 2007, 01:12 PM
krige's Avatar
krige Offline
Registered User
 
Join Date: Mar 2007
Location: Cosenza, Italy
Age: 42
Posts: 52
Quote:
Originally Posted by xamox
Does anyone know of any batch file renaming software for linux? I'm sure I could do what I want with the command line, but I would prefer a GUI.
Try Gnome Commander http://www.nongnu.org/gcmd/
You may install it through yum on FC5 and FC6:
yum install gnome-commander
It has meta data support for Exif, IPTC and ID3 tags.
__________________
Registered Linux user: 443874
Reply With Quote
  #9  
Old 17th March 2007, 03:57 PM
krige's Avatar
krige Offline
Registered User
 
Join Date: Mar 2007
Location: Cosenza, Italy
Age: 42
Posts: 52
I have just discovered Thunar http://thunar.xfce.org/index.html and I believe it's the best one I have tried so far!
__________________
Registered Linux user: 443874
Reply With Quote
  #10  
Old 22nd July 2014, 04:48 PM
frankoss Offline
Registered User
 
Join Date: Jul 2014
Location: India
Posts: 2
windows_7chrome
Re: Batch File Rename

You can batch truncate/rename file names through KrojamSoft BatchRenameFiles program.
Reply With Quote
  #11  
Old 22nd July 2014, 05:12 PM
kurtdriver Offline
Registered User
 
Join Date: Jul 2005
Location: Looking over your shoulder.
Posts: 1,884
linuxfirefox
Re: Batch File Rename

Oldest bump ever! You just set a new record. 7 years 4 months and six days.
Reply With Quote
  #12  
Old 22nd July 2014, 05:50 PM
frankoss Offline
Registered User
 
Join Date: Jul 2014
Location: India
Posts: 2
windows_7chrome
Re: Batch File Rename

for rename batch file. i suggest to try KrojamSoft BatchRenameFiles program.
Reply With Quote
  #13  
Old 22nd July 2014, 07:56 PM
flyingfsck Offline
Registered User
 
Join Date: Aug 2010
Location: Al Ain, UAE
Posts: 2,006
macoschrome
Re: Batch File Rename

Phatch can also do it
Reply With Quote
  #14  
Old 23rd July 2014, 01:36 AM
kurtdriver Offline
Registered User
 
Join Date: Jul 2005
Location: Looking over your shoulder.
Posts: 1,884
linuxfirefox
Re: Batch File Rename

Quote:
Originally Posted by frankoss View Post
for rename batch file. i suggest to try KrojamSoft BatchRenameFiles program.
Quote:
Originally Posted by frankoss View Post
You can batch truncate/rename file names through KrojamSoft BatchRenameFiles program.
That's Windows software. Doesn't run on Linux.
Reply With Quote
  #15  
Old 23rd July 2014, 02:50 AM
ocratato Offline
Registered User
 
Join Date: Oct 2010
Location: Canberra
Posts: 2,650
linuxfirefox
Re: Batch File Rename

Quote:
Originally Posted by kurtdriver View Post
Oldest bump ever! You just set a new record. 7 years 4 months and six days.
I think a bump is when the original poster does it, not some random poster who is probably getting ready for a spam dump.
__________________
Has anyone seriously considered that it might be turtles all the way down?
That's very old fashioned thinking.
The current model is that it's holographic nested virtualities of turtles, all the way down.
Reply With Quote
Reply

Tags
batch , file , rename

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP batch file herdemo Servers & Networking 2 28th February 2007 10:58 AM
batch file manipulator pitat450 Using Fedora 0 1st November 2006 02:51 PM
Howto rename file under Repair file system?? tiyogi Using Fedora 7 1st March 2006 02:57 AM
Help porting a windows batch file JohnF Programming & Packaging 1 29th September 2005 06:44 PM
Batch rename command jusaus Using Fedora 13 1st February 2005 01:06 AM


Current GMT-time: 17:42 (Saturday, 21-10-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat