Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 19/20 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 30th April 2009, 02:54 AM
bigmacbb63 Offline
Registered User
 
Join Date: Feb 2006
Location: southern california
Posts: 521
rename files with command line

Hi guys,

I wanted to see if I could get your help on another issue. I have a bunch of mislabeled files among
other things but I'll start with this first. Can anyone help me as far as using the command line to fix
this issue.

Thanks for your help ahead of time,

bigmac:
Reply With Quote
  #2  
Old 30th April 2009, 03:02 AM
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
It would help if you gave us an idea of the files that were mislabeledd. For example, if you want to relabel a bunch of files from JPG to jpg, one would use a for loop.

If the files are all over the place, you might have to use find and xargs.

Please be a bit more specific, then I think someone can help.

Meanwhile, I'm renaming the thread to be a bit more specific, so that the scripting experts will be more likely to notice it.
__________________
--
http://home.roadrunner.com/~computertaijutsu

Do NOT PM forum members with requests for technical support. Ask your questions on the forum.


"I don't know why there is the constant push to break any semblance of compatibility" --anon
Reply With Quote
  #3  
Old 30th April 2009, 04:45 AM
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,716
I'm not a fan of fancy gui tools when a script will do, but krename or pyrenamer might help here.


Short answer bigmac' is yes - someone can help if you can carefully describe the problem.
Reply With Quote
  #4  
Old 30th April 2009, 07:57 AM
leadgolem Offline
Registered User
 
Join Date: Apr 2005
Location: Littleton, CO
Age: 29
Posts: 2,857
Short answer, use the move command.
Code:
cd /where/my/files/are
mv wrongfilename.txt rightfilename.txt
The long answer requires more information to be useful.
__________________
S.C.O.U.R.G.E. Heroes of lesser renown, contributor.
Reply With Quote
  #5  
Old 30th April 2009, 08:27 PM
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,716
Also look at 'mmv' and 'rename' for more powerful features and mv.
Reply With Quote
  #6  
Old 1st May 2009, 02:47 AM
bigmacbb63 Offline
Registered User
 
Join Date: Feb 2006
Location: southern california
Posts: 521
Thank you so much for your help it is greatly appreciated.
You guys are so awesome and that doesn't even say enough.
I will be going through alot of different lines so I'll have to go through them
with you one at a time; since there is alot.

Thanks again,

bigmac

Last edited by bigmacbb63; 1st May 2009 at 02:49 AM. Reason: adding text
Reply With Quote
Reply

Tags
command, files, line, 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
Command line to sort files satimis Programming & Packaging 3 28th June 2005 12:57 PM


Current GMT-time: 09:28 (Thursday, 31-07-2014)

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