Linked Questions

4
votes
7answers
2k views

Batch renaming of files [duplicate]

I have a directory full of images: DSCN4749.JPG DSCN4750.JPG DSCN4892.JPG ... And I would like a one-liner to rename them to (say). dscn4749.jpg dscn4750.jpg dscn4892.jpg ... How do I do this? ...
2
votes
1answer
12k views

How to remove prefix from multiple files in a directory [duplicate]

I have ~250 files with the name: no_responseEvent_2002.02.07.03.15.56.970/ no_responseEvent_2002.02.10.01.47.07.450/ no_responseEvent_2002.02.13.14.18.46.00/ I want to remove '...
4
votes
3answers
5k views

How to replace a string in all folder and file names [duplicate]

How can I recursively replace a string in all folders and files' name with a different string? I am running Red Hat 6 and I can find them with: find . -name \*string\* I've managed to do it for ...
2
votes
2answers
5k views

batch rename file names including spaces and patterns [duplicate]

I would like to rename a bunch of files which are named in a general form of, text1 text2 [firstname.lastname] text3 ... textn.ext I want to remove the text [firstname.lastname] from the name of a ...
0
votes
3answers
5k views

Replace occurrences of character in filenames [duplicate]

How can I replace all the occurrences of the + character in all the filenames in the current working directory with the space character? I know that there's the linux command rename but I'm not sure ...
2
votes
3answers
2k views

Renaming Files according to Pattern [duplicate]

Possible Duplicate: Batch renaming files Let us assume that I have six files named: 1.a, 1.b, 1.c 2.a, 2.b, 2.c where a,b,c are file extensions like sh, txt etc. Now, I want to rename the ...
0
votes
2answers
789 views

batch rename a few files [duplicate]

Possible Duplicate: Batch renaming files I have some files that I wish to rename in a single command. The files are names thus. I want the E S Posthumus bit removed from the names and also the 01,...
0
votes
4answers
1k views

Bash Globbing Variable Substitution? [duplicate]

Possible Duplicate: Batch renaming files I want to rename files using their existing name as a base for the new one. So if I can ls these files with ls blue*+(.png) I'd want to rename them ...
1
vote
3answers
1k views

Append to the name of each file in directory [duplicate]

How to append “.backup” to the name of each file in your current directory?
-1
votes
1answer
787 views

Rename multiple file with no extensions? [duplicate]

I have multiple files all named seperate1 seperate2 etc. How do I rename them all to have the extension .csv?
0
votes
2answers
445 views

How to rename all the files in a directory to a particular format? [duplicate]

I have a directory in which I have lot of files in this format only. Below are just examples for two of my files. file_948_of_2000_push_data_12345.log file_950_of_2000_push_data_12345.log As you can ...
0
votes
1answer
451 views

How to remove a specific string from file name [duplicate]

I have a report running in UNIX and creating a file named xxxx_ddmmyy_hhmm_zzzzzz.txt. I need to remove the zzzzzz from the file name. How do I do it?
-1
votes
1answer
134 views

How to rename group files [duplicate]

How to rename a group of files tl_0014_0010_20151212_133443.jpg tl_0014_0010_20151212_133543.jpg tl_0014_0010_20151212_133643.jpg ... to photo00000.jpg photo00001.jpg photo00002.jpg ... ?
0
votes
1answer
119 views

Trying to rename .xml files in unix directory [duplicate]

I have around 5000 .xml files in my unix directory. I want to add extension Hist to all the file names before .xml extension. For example if the file is ABCD.xml, I want to rename it to ABCDHist.xml. ...
-1
votes
1answer
54 views

What is shortest way to rename files in bash [duplicate]

I have following files with names like: Selection_Test_from_120118_1140118.txt Selection_Test_from_monthly_120118_1140118.txt how we can rename both files by removing string from file: string1 --&...

15 30 50 per page