Let’s start with some quick review questions. Discuss these questions and their answers with a neighbor. If you don’t talk to someone about these, you fail the exercise.
Java : methods :: shell : __________
What do strings look like in a shell script?
Suppose I have username and domain variables. How do I produce an address variable?
How do I write a loop that processes all PNG files in the current directory?
What is the exit status of this script?
if test -e $0; then
echo 10
else
echo 20
fi
Then we’ll write some scripts:
A file that reverses itself.
Zip a directory DIR to file DIR.zip.
Bookmark a directory for later return.
Send files to limbo/recycling bin, rather than hell/non-existence.