Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __FILE__
- ...
- rootdir=`/bin/dirname $0` # may be relative path
- rootdir=`cd $rootdir && pwd` # ensure absolute path
- zero=$rootdir/`/bin/basename $0`
- echo $zero
- ...
- #!/bin/tcsh
- echo "I am $0."
- set rootdir = `dirname $0`
- set abs_rootdir = `cd $rootdir && pwd`
- echo $abs_rootdir
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement