2001-07-10 14:25:50 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2012-04-04 22:51:18 +00:00
|
|
|
address=/home/bozo/daily-journal.txt
|
2001-07-10 14:25:50 +00:00
|
|
|
|
2012-04-04 22:51:18 +00:00
|
|
|
echo "Basename of /home/bozo/daily-journal.txt = `basename $address`"
|
|
|
|
echo "Dirname of /home/bozo/daily-journal.txt = `dirname $address`"
|
2001-09-04 13:27:31 +00:00
|
|
|
echo
|
2005-05-08 20:09:31 +00:00
|
|
|
echo "My own home is `basename ~/`." # `basename ~` also works.
|
|
|
|
echo "The home of my home is `dirname ~/`." # `dirname ~` also works.
|
2001-07-10 14:25:50 +00:00
|
|
|
|
|
|
|
exit 0
|