zarkanian to Bash@lemmy.mlEnglish · 1 month agobash tricksimagemessage-square37fedilinkarrow-up1417arrow-down12
arrow-up1415arrow-down1imagebash trickszarkanian to Bash@lemmy.mlEnglish · 1 month agomessage-square37fedilink
minus-squarewaigl@lemmy.worldlinkfedilinkEnglisharrow-up16·edit-21 month agoBottom left example will leave you with a lot pictures ending on “.png.jpg”.
minus-squareGreat Blue Heron@lemmy.calinkfedilinkEnglisharrow-up9·edit-21 month agoconvert $i ${i%.*}.jpg NB: I’m no guru - I just googled “remove file extension in bash”.
minus-squareqqq@lemmy.worldlinkfedilinkEnglisharrow-up4·1 month agoShould also definitely be quoting both arguments
Bottom left example will leave you with a lot pictures ending on “.png.jpg”.
What’s a better way?
convert $i ${i%.*}.jpg
NB: I’m no guru - I just googled “remove file extension in bash”.
Should also definitely be quoting both arguments