@[email protected] to [email protected]English • 2 months agobash trickssh.itjust.worksimagemessage-square37fedilinkarrow-up1418arrow-down14
arrow-up1414arrow-down1imagebash trickssh.itjust.works@[email protected] to [email protected]English • 2 months agomessage-square37fedilink
minus-square@waigllinkEnglish16•edit-22 months agoBottom left example will leave you with a lot pictures ending on “.png.jpg”.
minus-squareGreat Blue HeronlinkfedilinkEnglish9•edit-22 months agoconvert $i ${i%.*}.jpg NB: I’m no guru - I just googled “remove file extension in bash”.
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