iscomar001
11/27/2018 - 4:12 PM

Rename Files

Renombra archivos masivo

https://www.cyberciti.biz/faq/linux-rename-file/


rename 's/tickets%2F\d{4}%2F\d{2}%2F\d{2}%2F(.+\.jpg).+/$1/' *
FROM:tickets%2F2017%2F11%2F22%2F3dc2cca0-f00c-4137-a52c-e6ccfb48f679.jpg?generation=1511394740802683&alt=media
TO:3dc2cca0-f00c-4137-a52c-e6ccfb48f679.jpg

rename 's/\?.+//' ./IMAGENES/tickets%2F2018%2F0* 

rename 's/old/new/' files
rename [options] 's/old/new/' files

For example, rename all perl files (*.perl) to *.pl, enter:
rename 's/perl/pl/' *.perl

OR
rename -v 's/perl/pl/' *.perl