view bin/example/script-path.sh @ 852:565875bc93b7

[bash example] interpolatation skeleton
author Jeff Hammel <k0scist@gmail.com>
date Sun, 10 Dec 2017 11:38:00 -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)"