Linked Questions
10 questions linked to/from How to rename multiple files in single command or script in Unix?
12
votes
6
answers
25k
views
Rename files in directory
How to rename files in a directory such as the following file: PMC21375.pdf.txt, I need to be renamed to 21375.txt. i.e, I need to remove both PMC and pdf from each file name.
9
votes
7
answers
4k
views
How to clean up file extensions?
I have a directories with .MP3 files which I'd like to change the extensions to .mp3. What's the easiest way to do this? I'm think something along the lines of:
find /RootPath -type f -iname "*.mp3" -...
7
votes
6
answers
15k
views
Rename first part of multiple files with mv [duplicate]
In a directory there are these files and more:
file1.txt
file1.html
file1.pdf
...
Every file1 should be replaced with newfile:
newfile.txt
newfile.html
newfile.pdf
...
I've tried:
for f in $(ls ...
0
votes
2
answers
210
views
How to rename multiple files into one name [duplicate]
I would like to rename these files;
2000.jpg
B001.jpg
9002.jpg
D006.jpg
to these names below
ICON000.jpg
ICON001.jpg
ICON002.jpg
ICON006.jpg
respectively.
0
votes
1
answer
275
views
Rename files in selected folder in Linux [duplicate]
Command for rename file as IMG0001 to 4R0001 in folder
for f in *;do mv "$f" `echo "$f" | sed 's/IMG/4R/g' `; done
AND
I just want rename selected folder
/tmp/2014/1201 (rename files)
/tmp/2014/...
0
votes
1
answer
115
views
What is the barebones simplest way to recursively rename one extension to another? [duplicate]
I've done a fair share of googling and I've found some rather complex solutions. I feel as though there must be something simpler.
Let's say I have
./1.txt
./2.txt
./more/3.txt
./more/4.txt
./more/...
2
votes
2
answers
6k
views
rename multiple files in multiple directories using Bash scripting
I want to rename multiple files in multiple directories using Bash scripting.
I have 772 such directories i.e from Nishi_001 to Nishi_772. Each directory has different number of files in it but in ...
0
votes
1
answer
299
views
How to rename multiple file using shell script? [duplicate]
i just want to rename my images.
IMG_20160713_173102.jpg file to 20160713_173102.jpg
i just want to remove that IMG_ part from my filename.
0
votes
1
answer
357
views
Renaming files using mv in bash on MacOS (moving substring in filename)
I'm trying to bulk rename files in bash on MacOS.
PREFIX - Full Title 1 012346.txt
I'm trying to rename them to be:
012346 - PREFIX - Full Title 1.txt
How can I do this in the shell using mv only?
0
votes
1
answer
51
views
How renaming files from figures to letters [duplicate]
would like to know the appropriate script to use rename these files:
2000.jpg
B001.jpg
9002.jpg
5006.jpg
A007.jpg
to
ICON000.jpg
ICON001.jpg
ICON002.jpg
ICON006.jpg
would like to convert all ...