The tag has no wiki summary.

learn more… | top users | synonyms

7
votes
5answers
12k views

How to rename multiple files in multiple folders with 1 command

We want to rename our *.html files to *.php but (sadly enough) have not enough knowledge to do it with a dos batchfile and/or cmd prompt command. The problem is that each file is in seperat folder ...
6
votes
2answers
3k views

Batch rename files in Linux

How I can rename images with 'rename' command from "something_full.jpg" to "something_500.jpg" recursive?
4
votes
1answer
2k views

How to recursively rename files/folders to make their names Windows-friendly?

I have a bunch of files on a Ubuntu box, which have various characters in their filenames that Windows doesn't accept (mostly ":" and "*", but possibly others). What's the simplest way to get these ...
3
votes
5answers
11k views

Batch file to replace a single character in Windows filenames

I have a Windows Server 2003 server that has a whole bunch of filenames that need renaming. Basically, I just need all - (hyphens) replaced with _ (underscores), no matter where they are in the ...
3
votes
2answers
2k views

Add text to end of filename (but before extension) using batch file

I have a list of files which are in the format on the left. I want to append a string to each file name, but before the extension, as shown: File 1.txt -> File 1 version 1.txt File 2.txt -> ...
3
votes
2answers
107 views

install rename command in cygwin

In linux exist the rename command, for rename a set of files with regular expresions. rename 's/prefix_//' *.jpg if I search in the cygwin package I find the renameutils package, but this don't ...
3
votes
1answer
1k views

remove numbers from filenames in Mac OS X

I have a directory full of files with names in this format (with numbers as the start of each filename): 102_file.txt 104_list.txt 242_another_file.txt I would like to rename them as follows (i.e. ...
3
votes
2answers
672 views

How do I remove non-ascii characters from filenames?

I have several files with names containing various Unicode characters. I'd like to rename them to only contain the "printable" ASCII characters (32-126). E.g, Läsmig.txt //Before ...
3
votes
1answer
85 views

How to find a file and move it into the directory it was found in

I am trying to rename files in sub directories using xargs by running the following command: find . -name oldfile.txt -print0 | xargs -n 1 -0 -I % mv % newfile.txt The problem is that the file gets ...
3
votes
2answers
202 views

Linux: Howto get same output filenames of batch conversion with different extension?

I am using Timidity to convert a lot of midi files to mp3. I was wondering if there is a standard way of specifying a output pattern so that it converts all the *.mid files to /path/*.wav I ask this ...
3
votes
1answer
459 views

How can you rename hundreds of PDF files with information found in the file?

I scan forms at work into PDF files and then use Nitro to make them searchable. I need to come up with a way to read the 1st 50 characters of the file which is always in the same place in the ...
2
votes
3answers
2k views

Mass Remove File Prefix on a Mac?

How do I mass remove file prefixes in a Mac? For example, inside my folder, I have the following files: img_sometext1.jpg img_sometext2.jpg ... img_sometext10.jpg How do I remove img_?
2
votes
1answer
4k views

Windows XP: how do I add 00 in front of every file via command prompt?

Windows XP: how do I add 00 in front of every file via command prompt? I tried REN * 00*.gif but it doesn't work.
2
votes
3answers
2k views

Automatic PDF renaming based on title

I have thousands of scientific PDFs that i need to rename, many do not have metadata. I would like to be able to create an automator action that could open a folder then open each PDF, copy the title ...
2
votes
2answers
743 views

Batch Rename (remove specific character) Files

I have about 3500 recorded phone calls and they are all labelled yyyy_mm_dd_hh_mm_mobilenumber.3gp I want to remove the underscore from the name so searching through them is easier How would I do ...
2
votes
3answers
10k views

How to loop through folders and rename extensions in a batch file?

Selecting a single folder I could run ren *.jpeg *.png I have multiple folders. I want to create a batch file that will loop through all the folders and will rename the files within it. For ...
2
votes
3answers
2k views

Batch change file extensions in Mac OS X?

I used wget to download a website into a folder. When files have the same names, wget stores the new one as name.extension.# Now I have hundreds of files like 1.jpg, 1.jpg.1, 1.jpg.2, etc. How can I ...
2
votes
1answer
100 views

Replace files with others from other folder matched by first token in filename

Lets say I have two folders: ls /A/ 01 - IncorrectName.flac 02 - otherincorrect.flac ls /B/ 01 - CorectName.flac 02 - Othercorrect.flac How would I move the files from dir A to B, ...
2
votes
2answers
351 views

Using mmv, how to strip folder names of a “+”

I have a bunch of folders with + instead of spaces. I tried mmv '*+*' '#1_#2' as well as mmv '*\+*' '#1_#2' with the result + -> #1_#2 : no match. and + -> #1_#2 : no match. ...
2
votes
3answers
1k views

Script to clean up folder names

I have a lot of folders that need to be renamed based on couple rules. example of folders: -- Some.Folder.Name.Today.2009 -- Another.messed.Up.folder.1980 -- Third.messed.Up.folder.1980 I would ...
2
votes
2answers
356 views

Windows script to run as a batch to replace character in list of file names

I have 4 files as below: C:\Documents and Settings\vm\AC R\test JE.BOS.20130516.CSV JE.BES.20130516.CSV KFROPN.SAVEFILE.CSV KFBAD.SAVEFILE.CSV I have to replace "." in the filename with "-". But ...
2
votes
2answers
668 views

Mass file renaming in Bash but keeping a section of the file name

I have a large number of .jpg file that have extraneous data ahead of a file id that i need to have removed to better set up my file structure for a later project. How can I do a batch rename in ...
2
votes
1answer
765 views

How to rename bulk title tag in mp3 ID3 files

I have a few folders containing mp3 files (folder names CD#1 CD#2) with a few files in each folder. I renamed the Album name and changed the track number so my ipod should store it as one long ...
2
votes
2answers
278 views

Bulk Rename Utility

I have been using Bulk Rename utility and I have been having some issues. I have some files named things like 664722.pdf,664762.pdf, and 664722-1.pdf that I need to rename. The problem is I have to ...
2
votes
1answer
52 views

Finding and renaming files

I have about 1000 files containing the character * in the name. I need to find these files and replace the * with a -. I am working with HP UX v11. I am using the following command find . -type f ...
2
votes
2answers
147 views

Find and remove common words in filenames automatically

I'm using Mac OS 10.8.4, and want to do some batch renaming using the Terminal which is a bash shell I think. I have a large number of folders of large number of files. The filenames have words ...
2
votes
1answer
202 views

Need assistance making a batch file for renaming files in separate folders

Ok, here's one for you. I'm trying to use a batch file to rename a bunch of files, but none of them are in the same folder as the batch file itself. The command prompt keeps telling me that the ...
1
vote
3answers
309 views

Linux GUI Regular Expression File Renamer (with substitution)

I have folder with several hundred files named like this: 010203.txt I want to rearrange the file names so that last two digits are moved to the front like this: 030102.txt I want to avoid writing ...
1
vote
2answers
313 views

In XP, how do I rename a directory of files using a regex or similar to remove part of a filename and add a prefix?

I have a list of files generated from SSMS in XP like this: dbo.mysproc1.StoredProcedure.sql dbo.mysproc2.StoredProcedure.sql dbo.mySproc3.StoredProcedure.sql ... you get the drift I want to rename ...
1
vote
4answers
1k views

Using PDF MetaData to rename PDFs in MAC OS X

I have a number of PDFs that I downloaded from JStor. They come with unhelpful numeric filenames, but often there is at least a title if not the author in the metadata. How do I batch rename a number ...
1
vote
1answer
1k views

Batch removal of special characters from file names in Linux

I am seeking to remove all special characters from several files' worth of downloaded .pdfs, and came across exactly the solution I was looking for, albeit in an OS X environment: function to ...
1
vote
1answer
1k views

Rename every file in a directory to remove part of filename [duplicate]

Possible Duplicate: Mass Rename Files with bash I have a directory full of files with names like this: 1418450360_72733601001_th-72713048001.jpg?pubId=1418450360 ...
1
vote
3answers
961 views

Windows XP command prompt rename command for this task?

Windows XP command prompt rename command for this task? Rename... file.mp3.0001.mp3 file.mp3.0002.mp3 file.mp3.0003.mp3 file.mp3.0004.mp3 to afile.mp3.0001.mp3 afile.mp3.0002.mp3 ...
1
vote
6answers
93 views

Batch Renaming Automation *_2.* TO *.*

i am in the process of renaming multiple files from *_2.* to . I want to remove the "_2" suffix My first workaround is trying ren *_2.* *.* but this does not work. Help is apperciated.
1
vote
2answers
144 views

Batch-Renaming Movies using Regex

I've been trying to rename some movie files using regular expressions, but so far I have been only marginally successful. The goal is to parse files like this: ...
1
vote
3answers
4k views

How do you quickly remove underscores from folder names?

What is the easiest and fastest way to remove underscores from folder names in Windows? Running a Google search I found a VB script that automatically removes all underscores from file names in the ...
1
vote
2answers
306 views

Batch script to remove # from a file name (only in a specific directory)

I'm looking for a script to remove the # character out of any file names in a specific directory (PDF documents). I've been looking at some similar examples, but it's all a bit confusing!
1
vote
1answer
259 views

Renaming multiple files in various folders to the same name in W7

I have a bunch of directories, each one contains exactly 1 file named folder.jpg. What I would like to do is to rename all the files cover.jpg, but when I do search on *.jpg and try to rename, it ...
1
vote
2answers
3k views

Which is the fastest way to replace all “underscores _” in filenames with “space” [duplicate]

Possible Duplicate: How can I mass rename files from the command line or using a 3rd party tool? I have many PDFs of EBooks but some of them have underscores in their filenames so it ...
1
vote
1answer
20 views

Recursively Rename File Extensions Across Multiple Drives

I have this for a batch file. I know squat about batch files. FOR /r %%x IN (*.BMP,*.GIF,*.JPG,*.PNG) DO REN "%%x" *.jpeg Which works fine locally. I need this to work across multiple drives ...
1
vote
3answers
36 views

changing order of files

I have a series of files named in alphabetical order (xaa.tif to xdg.tif). I need to reverse the order of the filenames so that the last file is processed first in a script. I would like to rename ...
1
vote
1answer
86 views

How to rename a movie file and also files ins subdirectories (e.g. subtitles) beginning with same prefix

I've several directories with movie files , and also subdirectories with subtitles files with same prefix or starting with same prefix. I want to rename subtitles files with the Directory name it is ...
1
vote
1answer
196 views

Find “ extra” dot in filename and remove it [duplicate]

I have some files inside a directory structure with multiple folders that have more than one dot. For example, "x.y.jpg" or "x.yz.01.jpg". How can I list all files with more than one dots in their ...
1
vote
1answer
997 views

Batch rename files to numbers with leading zeros [duplicate]

Possible Duplicate: How do I rename a bunch of files in the Command Prompt? I'm coming back to Windows after several years in Linux (I'm a trucker, and the company I just leased my truck ...
1
vote
2answers
895 views

Batch script to rename portionof a filename

I've been trying to make a script that will a file name and change only one word in it. An example would be: projectname.vcproj.domainname.username.user to ...
1
vote
1answer
399 views

How to batch rename files in Mac OS X?

I have the bunch of files that have names like MOV001.mpg, MOV002.mpg etc. They all have different date-time. How can I rename them so they turn into 2012 08 05 13 45 33 MOV001.mpg, 2012 09 02 23 ...
1
vote
1answer
435 views

I need to rename a group of numbered files, but modify the number + 5. How? [duplicate]

Possible Duplicate: How can I mass rename files from the command line or using a 3rd party tool? I have a group of 47 .mp3 files that are being used for a multimedia project that are named ...
1
vote
3answers
970 views

Replace umlauts with regular expressions

I would like to sync several folders on my local Mac with a remote server via SFTP. As the existing umlauts appear to be problematic for my syncing software (Deltawalker), I am looking for a way ro ...
1
vote
3answers
47 views

Program that renames mp3 files using ID3 tag [closed]

I know a lot of people who have MP3 collections and find out their music directory looks a lot like this... 0.mp3 1.mp3 2.mp3 3.mp3 ... So useless with a file manager. What ...
1
vote
1answer
147 views

Sorting Files into Subfolders based on EXIF Date

I have a huge directory from a HDD recovery that contains 70000+ JPEG files. I tried playing around with some AppleScripts, that I found, but had no luck. I already installed EXIFtool, which might be ...