view bin/example/script-path.sh @ 685:3da85ac3c54f

STUB: bin/example/script-path.sh
author Jeff Hammel <k0scist@gmail.com>
date Mon, 19 May 2014 13:16:53 -0700
parents 18683536bc57
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)"