@[email protected] to [email protected]English • 1 month agobash trickssh.itjust.worksimagemessage-square37fedilinkarrow-up1418arrow-down14
arrow-up1414arrow-down1imagebash trickssh.itjust.works@[email protected] to [email protected]English • 1 month agomessage-square37fedilink
minus-square@waigllinkEnglish16•edit-21 month agoBottom left example will leave you with a lot pictures ending on “.png.jpg”.
minus-squareGreat Blue HeronlinkfedilinkEnglish9•edit-21 month 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