1
vote
3answers
41 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
29 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
0
votes
4answers
143 views

Can I rename files in a directory with Vim?

If I open a directory in vim using vim . I will get a file-browser-type interface of the current directory. From there I am expected to browse to a file, and then start editing it. I want to use ...
1
vote
3answers
57 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 ...
0
votes
2answers
222 views

Copy file names to another folder

I need to copy file names from one folder to another. File contents are never changed. No files are overwritten, moved or copied. It's only about file names. I have a folder A with files named: ...
0
votes
1answer
300 views

Changing the sequence numbers of files in Linux

Is it possible to write a script to rename a series of file as below: sol-temp_0010.png to sol-temp_1.png sol-temp_0015.png to sol-temp_2.png sol-temp_0020.png to sol-temp_3.png etc.?
0
votes
2answers
318 views

Rename and reverse the numbering of a list of files

In Linux, preferably using bash, what would be the best way to achieve the goal below? Say I have a series of numbered files 001.png, 002.png, 003.png What is the best way to move/rename them to ...
1
vote
1answer
3k 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 ...
3
votes
1answer
134 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 ...
2
votes
3answers
415 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
votes
1answer
241 views

How can I recursively rename all files in a folder? [duplicate]

I'm using linux and I have a project with files named myproject-someextention.whatever and someotherstuffmyproject and so on. I'd like to recursively rename everything that has myproject in the file ...
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 ...
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?
2
votes
1answer
107 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
405 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. ...
3
votes
2answers
240 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 ...
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 ...