What does ${0%/*} in shell scripts do? – askubuntu.com

Sorry if this is a stupid question, but I searched about it without success. What does exactly the second command do ?: #!/bin/sh cd ${0%/*} || exit 1 I know the first is the shebang,the ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "What does ${0%/*} in shell scripts do? – askubuntu.com"