this post was submitted on 01 Dec 2024
418 points (99.5% liked)

Bash

945 readers
2 users here now

Talk about the Bash Shell and Bash scripting

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] zarkanian@sh.itjust.works 2 points 8 months ago (1 children)
[–] GreatBlueHeron@lemmy.ca 9 points 8 months ago* (last edited 8 months ago) (1 children)

convert $i ${i%.*}.jpg

NB: I'm no guru - I just googled "remove file extension in bash".

[–] qqq@lemmy.world 4 points 8 months ago

Should also definitely be quoting both arguments