Answers for "get script directory bash"

3

get script dir bash

SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
Posted by: Guest on May-25-2021
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
-1

get script directory bash

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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language