Answers for "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-18-2021

Browse Popular Code Answers by Language