Answers for "how to get a script's directory in bash"

2

how to get a script's directory in bash

#!/bin/bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
Posted by: Guest on June-23-2020

Code answers related to "how to get a script's directory in bash"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language