BASH Rename Multiple Files Linux Shell Tutorial

preview_player
Показать описание


This Video Brought to you by:
Rashid - Patreon supporter
Рекомендации по теме
Комментарии
Автор

Thank you very much!
Really appreciated the brevity - or, more accurately, the absence of waffle.

Douglas-hwis
Автор

I use this at work to change the Client's Project number on Docs, to my Company's. It's really useful.

mnky
Автор

Luke was using bulkrename command from the ranger file manager

lucascruzdosreis
Автор

I missed the part where you actually show how to write a bash script to rename multiple files :3

BxrHavik
Автор

There is a similiar `rename` command which is part of `util-linux`. It looks like `rename JPEG jpg *.JPEG`.

devon
Автор

Tempted to write a shell script using sed and xargs to accomplish the same thing. Should be easy.
Then again I thought the same thing about an MPV lua script and it took me hours to get it right earlier today.

davidgomez
Автор

Bro make an tut on (+ -) lookahead and behind using complex strings.

martyrdm
Автор

Would like to know how to rename multiple files based in field delimiters, like I have bunch of files named "00 - ABC - XX.ext" would like to move the field "00 -" next to "XX" resulting in "ABC - 00 - XX.ext" how to do it?

renatod.o.
Автор

can anyone tell me i want same thing but dont want to chng extention. how to do it

arslanzulfqar
Автор

Hw can i rename multiple netcdf file to a single format

dishithomas
Автор

How would you rename multiple files as per their size?

HULCHUL
Автор

It´s a short video both for my was great. Thanks

christhianulisesfrancofria
Автор

I made a function for .bashrc file so you wont need to install any extra crap
function rn() {
pathto="$(pwd)"
varin=$1
varout=$2
#
for file in *.$varin ; do
mv $file $(echo $file | rev | cut -c4- | rev).$varout
done
}

# Example usage:
rn md txt

JNET_Reloaded
Автор

sudo apt install rename (see what happens)

marksawesomeadventures
Автор

for i in *.jpg; do while read LINE; do if [ $i != $LINE ]; then mv $i $LINE; fi; done < <(echo $i | sed 's/jpg/JPEG/g'); done
this line worked, should be able to create a simple script from it to rename using sed
just like that perl script does with very little tweaking.

davidgomez
Автор

Oh, it look like vim replace command. :D

KorakotRakhuang