#! /bin/sh
# Question 1:
# Use the command basename and command substitution to write a simple
# program that prints its own name. This should still work, even if the
# program is renamed. Here is an example of running it:
# $ ./myname.sh
# This is myname.sh
# $ mv myname.sh what-is-my-name
# $ ./what-is-my-name
# This is what-is-my-name
prog=$(basename $0)
echo "This is $prog"