12 lines
337 B
Bash
12 lines
337 B
Bash
#!/bin/bash
|
|
|
|
a=/home/bozo/daily-journal.txt
|
|
|
|
echo "Basename of /home/bozo/daily-journal.txt = `basename $a`"
|
|
echo "Dirname of /home/bozo/daily-journal.txt = `dirname $a`"
|
|
echo
|
|
echo "My own home is `basename ~/`." # Also works with just ~.
|
|
echo "The home of my home is `dirname ~/`." # Also works with just ~.
|
|
|
|
exit 0
|