Answers for "script directory in bash"

-2

get script directory bash

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

script dir bash

#!/bin/bash

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
Posted by: Guest on May-18-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language