Fix bash script expecting path input with / at the end breaking when path doesn't end with / – unix.stackexchange.com 03:47 Posted by Unknown No Comments I have this code : for file in "$@"*png; do echo "$file" done It works only if you provide a path that ends with / like /root/. What would be the correct way to add / to the path input, in ... from Hot Questions - Stack Exchange OnStackOverflow via Blogspot Share this Google Facebook Twitter More Digg Linkedin Stumbleupon Delicious Tumblr BufferApp Pocket Evernote Unknown Artikel TerkaitIntel management engine - is macOS vulnerable? – apple.stackexchange.comHow to say this in english? – ell.stackexchange.comHow to access 192.x address space from 10.x address space? – superuser.comWhy did Garion assume that neither Polgara nor Belgarath exist? – scifi.stackexchange.comDo Mormons accept ceremonies, such as the sacrament, by other Christian denominations as valid? – christianity.stackexchange.comADSL modems directly connected – superuser.com
0 Comment to "Fix bash script expecting path input with / at the end breaking when path doesn't end with / – unix.stackexchange.com"
Post a Comment