@[email protected] to [email protected]English • 3 days agobash trickssh.itjust.worksimagemessage-square36fedilinkarrow-up1410arrow-down14
arrow-up1406arrow-down1imagebash trickssh.itjust.works@[email protected] to [email protected]English • 3 days agomessage-square36fedilink
minus-square@waigllinkEnglish16•edit-23 days agoBottom left example will leave you with a lot pictures ending on “.png.jpg”.
minus-squareGreat Blue HeronlinkfedilinkEnglish9•edit-23 days 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