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.
domainvariables. How do I produce an
if test -e $0; then echo 10 else echo 20 fi
Then we’ll write some scripts:
Here’s your TODO list for next time:
#!/bin/sh if test -e $0; then echo 10 else echo 20 fi
#!/usr/bin/tail -r Rachael Matthew Bingo Petey F Marge N Bill Dollar
#!/usr/bin/env zsh if [ $# -ne 1 ]; then echo 'Ack!' echo "Usage: $0 dir" exit 1 fi dir=$1 zip -r $dir.zip $dir