Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

present working directory in shell script

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

BASEDIR=$(dirname $0)
echo "Script location: ${BASEDIR}"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #present #working #directory #shell #script
ADD COMMENT
Topic
Name
6+2 =