this post was submitted on 01 Dec 2024
414 points (99.3% liked)

Bash

892 readers
1 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
[โ€“] GreatBlueHeron@lemmy.ca 9 points 1 year ago* (last edited 1 year 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 1 year ago

Should also definitely be quoting both arguments