Linux renaming files to add _00 after filename before extension.
Posted
by Mech Software
on Server Fault
See other posts from Server Fault
or by Mech Software
Published on 2010-03-24T18:25:22Z
Indexed on
2010/03/24
18:33 UTC
Read the original article
Hit count: 279
What am I missing here, this seems so simple yet I cant get it to work.
I have a directory with files like AGPNDRAH01.jpg
I want a directory with files like AGPNDRAH01_00.jpg
rename 's/(\w+).jpg\$1\_00.jpg$//' *
Doesnt, work. Centos linux. Makes no sense to me why this isnt working.
© Server Fault or respective owner