OILS / demo / readlink-demo-target.sh View on Github | oilshell.org

14 lines, 5 significant
1#!/usr/bin/env bash
2
3echo '--- readlink-demo-data.sh ---'
4
5echo '$0 =' $0
6#cat $(dirname $0)/readlink-demo-data.txt
7
8script=$(readlink -f $0)
9#script=$(readlink $0)
10#script=$(bin/readlink -f $0)
11
12echo "script = $script"
13
14cat $(dirname $script)/readlink-demo-data.txt