view bin/example/script-path.sh @ 840:51635d21bbb0

genericize
author Jeff Hammel <k0scist@gmail.com>
date Mon, 24 Apr 2017 21:51:31 -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)"