gtc-rename/rename-subs/photos

6 lines
89 B
Plaintext
Raw Normal View History

2022-07-17 15:07:57 +02:00
s/\.jpeg$/\.jpg/i;
s/\.JPG$/\.jpg/i;
if (-f "$d/$_") {
$_="$_.jpg" unless (/\....$/);
}