zarkanian@sh.itjust.works to Bash@lemmy.mlEnglish · 6 months agobash trickssh.itjust.worksimagemessage-square37linkfedilinkarrow-up1418arrow-down12
arrow-up1416arrow-down1imagebash trickssh.itjust.workszarkanian@sh.itjust.works to Bash@lemmy.mlEnglish · 6 months agomessage-square37linkfedilink
minus-squarewaigl@lemmy.worldlinkfedilinkEnglisharrow-up16·edit-26 months agoBottom left example will leave you with a lot pictures ending on “.png.jpg”.
minus-squareGreat Blue HeronlinkfedilinkEnglisharrow-up9·edit-26 months agoconvert $i ${i%.*}.jpg NB: I’m no guru - I just googled “remove file extension in bash”.
minus-squareqqq@lemmy.worldlinkfedilinkEnglisharrow-up4·6 months 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