view bin/example/script-path.sh @ 728:6ba565f99696

cache credentials for a session
author Jeff Hammel <k0scist@gmail.com>
date Fri, 05 Dec 2014 16:50:04 -0800
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)"