Mittwoch, 19. April 2017
Getting the source directory of a Bash script from within
mattki, 13:16h
#!/bin/bash
scriptdir=`dirname $(readlink -f $0)`
echo "scriptdir = ${scriptdir}"
scriptdir=`dirname $(readlink -f $0)`
echo "scriptdir = ${scriptdir}"
... comment