The tag has no wiki summary.

learn more… | top users | synonyms

7
votes
5answers
17k 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
4k views

Batch rename files in Linux

How I can rename images with 'rename' command from "something_full.jpg" to "something_500.jpg" recursive?
5
votes
2answers
7k 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 -> ...
5
votes
5answers
15k views

How to replace a single character in Windows filenames using a batch file?

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 ...
4
votes
4answers
3k 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_?
4
votes
2answers
1k 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 ...
4
votes
1answer
2k 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. ...
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
3answers
3k 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 ...
3
votes
1answer
43 views

Bulk rename files to name of parent folder

I have a large (aprox. 150,000) tiff files which all have the same filename. They are unique because of the directory structure they are held in. I would like to bulk rename the tiff files so they ...
3
votes
2answers
2k 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
158 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
262 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
612 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
491 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 ...
2
votes
1answer
5k 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
2answers
2k 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
13k 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
108 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
3answers
6k 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 ...
2
votes
2answers
441 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
2answers
993 views

How to bulk rename audio files so that the file name matches the title metadata (preferably using Foobar2000)?

I have some audio files for which I used Foobar2000 to get the proper tags (Title, Artist, Album, etc), so now they have their proper titles when loaded in Foobar and other players, but they still do ...
2
votes
2answers
586 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
1k 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
1k 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
612 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
284 views

Increment file number using zmv

I have a set of files that are named in the vein of "some_file-nameN", where N is a number starting at 1, incrementing, and ending somewhere between 10 and 30. I now need to insert a file at the ...
2
votes
1answer
62 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
303 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
219 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
2answers
379 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
1answer
4k 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
4answers
2k 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
2k 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
1k 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
3answers
74 views

How to rename files deleting the " character using the linux shell

I have a number of files with double quotes in the filename like this: "This_is_a_long_filename_with_quotes".mp3 I try to use the linux command rename, I can erase the underscore easily using ...
1
vote
2answers
298 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
1answer
50 views

How to use Massren with Vim?

I want to use massren renamer in vim in order to rename files within the texteditor. First, I used this command within Vim to set Vim as default editor for massren :! ...
1
vote
6answers
138 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
1k 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
354 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
4k 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
62 views

Batch file to rename spaces with a dot, except the - part and have it lowercase

I am trying to rename a file from The Big Bang Theory - The Prom Equivalency.mp4 to the.big.bang.theory-the.prom.equivalency.mp4 with a batch script. Here's what I've got so far: @ECHO OFF setlocal ...
1
vote
1answer
523 views

running batch file within powershell

I'm running a batch file within PowerShell. It calls up another program to do a bunch of maps which it outputs to a subfolder called "GRD" I then want to rename the files in the GRD folder by adding ...
1
vote
2answers
42 views

batch rename multiple mp3's stripping leading digits

Hi could anyone help me? Im trying to strip leading digits from multiple mp3 files so "01 some_file.mp3" would become "some_file.mp3" if any one could show me how to doit with zmv that would be great
1
vote
1answer
38 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
62 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
233 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
395 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 ...