add directory Ref-docs
This commit is contained in:
11
Ref-docs/manual Bash/abs-guide/abs-guide/ex35.sh
Normal file
11
Ref-docs/manual Bash/abs-guide/abs-guide/ex35.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user