Answers for "get script dir bash"

3

get script dir bash

SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
Posted by: Guest on May-25-2021
0

script dir bash

#!/bin/bash

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
Posted by: Guest on May-25-2021
-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