# HG changeset patch # User Jeff Hammel # Date 1370701657 25200 # Node ID 18683536bc573b9e438050af0a39832b5f99c664 # Parent cf793eb3811e16d336ff1cc1290c71280f1dad47 adding example scripts for my own posterity diff -r cf793eb3811e -r 18683536bc57 bin/example/README.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/example/README.txt Sat Jun 08 07:27:37 2013 -0700 @@ -0,0 +1,1 @@ +Example scripts of how to do particular things in bash diff -r cf793eb3811e -r 18683536bc57 bin/example/script-path.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/example/script-path.sh Sat Jun 08 07:27:37 2013 -0700 @@ -0,0 +1,7 @@ +#!/bin/bash + +# echoes path to this script (example) + +echo "argv[0]: $0" +path=`readlink -f $0` +echo "path: ${path}"