DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+5 =
Submit