Answers for "present working directory in shell script"

0

present working directory in shell script

#!/bin/bash
echo "Script executed from: ${PWD}"

BASEDIR=$(dirname $0)
echo "Script location: ${BASEDIR}"
Posted by: Guest on March-17-2021

Code answers related to "present working directory in shell script"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language