view bin/example/script-path.sh @ 917:372061cd29d7

web2 requires sudo for port 80
author Jeff Hammel <k0scist@gmail.com>
date Thu, 30 May 2024 18:59:32 -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)"