view bin/example/script-path.sh @ 843:8270a1e4eeed

[PATH] cleanup paths a bit
author Jeff Hammel <k0scist@gmail.com>
date Sun, 13 Aug 2017 14:59:59 -0700
parents 3da85ac3c54f
children
line wrap: on
line source

#!/bin/bash

# echoes path to this script (example)

echo "argv[0]: $0"
path=`readlink -f $0`
echo "path: ${path}"
echo "basename: $(basename $0)"