minus-squareBingBong@sh.itjust.worksOPtoLinux@lemmy.ml•Bash scripting questionlinkfedilinkarrow-up19·4 days agoInteresting, the code shows up correctly for me in firefox. I wonder if that’s due to my instance? This works perfectly! Thank you!!! In case anyone else finds themselves wondering about the ${0##*.} portion, I found this article to be very helpful. https://stackoverflow.com/questions/30980062/0-and-0-in-sh edit: You beat me to it with your link on parameter expansion. I’ll be reading through that tonight as well. Thanks again. linkfedilink
BingBong@sh.itjust.works to Linux@lemmy.mlEnglish · 4 days agoBash scripting questionplus-squaremessage-squaremessage-square20linkfedilinkarrow-up152arrow-down10
arrow-up152arrow-down1message-squareBash scripting questionplus-squareBingBong@sh.itjust.works to Linux@lemmy.mlEnglish · 4 days agomessage-square20linkfedilink
Interesting, the code shows up correctly for me in firefox. I wonder if that’s due to my instance?
This works perfectly! Thank you!!! In case anyone else finds themselves wondering about the ${0##*.} portion, I found this article to be very helpful. https://stackoverflow.com/questions/30980062/0-and-0-in-sh
edit: You beat me to it with your link on parameter expansion. I’ll be reading through that tonight as well. Thanks again.