view bin/example/script-path.sh @ 926:f1168a3417d2 default tip

rm old email
author Jeff Hammel <k0scist@gmail.com>
date Tue, 04 Mar 2025 10:21:18 -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)"