mirror of https://github.com/tLDP/LDP
12 lines
346 B
Bash
12 lines
346 B
Bash
#!/bin/bash
|
|
|
|
address=/home/bozo/daily-journal.txt
|
|
|
|
echo "Basename of /home/bozo/daily-journal.txt = `basename $address`"
|
|
echo "Dirname of /home/bozo/daily-journal.txt = `dirname $address`"
|
|
echo
|
|
echo "My own home is `basename ~/`." # `basename ~` also works.
|
|
echo "The home of my home is `dirname ~/`." # `dirname ~` also works.
|
|
|
|
exit 0
|