How to get the filename and directory name of the shell script being run:
directoryName=${0%/*} #capture everything before the last / filename=${0##*/} #capture everything after the last /
Post a Comment
No comments:
Post a Comment