Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash provide path to same dir as executable

#!/bin/bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #provide #path #dir #executable
ADD COMMENT
Topic
Name
1+5 =