 |
 |
 |
 |
| 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. |

30th April 2009, 02:54 AM
|
 |
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:
|

30th April 2009, 03:02 AM
|
 |
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
|

30th April 2009, 04:45 AM
|
 |
Registered User
|
|
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,346

|
|
|
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.
|

30th April 2009, 07:57 AM
|
 |
Registered User
|
|
Join Date: Apr 2005
Location: Littleton, CO
Age: 28
Posts: 2,855

|
|
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.
|

30th April 2009, 08:27 PM
|
 |
Registered User
|
|
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,346

|
|
|
Also look at 'mmv' and 'rename' for more powerful features and mv.
|

1st May 2009, 02:47 AM
|
 |
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
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: 02:13 (Wednesday, 19-06-2013)
|
|
 |
 |
 |
 |
|
|