nsbin/get_absolute_path.sh

11 lines
156 B
Bash
Raw Normal View History

2006-07-20 07:54:37 +00:00
#!/bin/sh
cd /
SCRIPT_DIR_RELATIVE=$(dirname $0)
SCRIPT_DIR_ABSOLUTE=$(cd $SCRIPT_DIR_RELATIVE; pwd)
echo $SCRIPT_DIR_RELATIVE $SCRIPT_DIR_ABSOLUTE
pwd