Chapter 3
2.
for filename in /usr/local/*
do
echo $filename
done
3.
$yolo=cfw_/usr/local/*
for filename in $yolo
do
echo $filename
done
4.
echo -n "Which directory would you like to see the listing of? "
read yolo
for filename in $yolo
do
echo $filenam

#2
Adding the shell directory, in our case /bin/sh is necessary. We add it with the boilerplate lines of: #!/bin/sh
#3
We can continue to fill in the useful defaults by testing for errors by checking for type 2 outputs (STDERR). We can test arguments iter

The tick_for example of using the ls command within a for loop appears, at least at first
glance, to be a bit clumsy. Rewrite the tick_for script using a wildcard glob, such as *.txt.
Make the output appear the same. Discuss at least one major difference

my $secret = int(1 + rand 100);
# This next line may be un-commented during debugging
print "Don't tell anyone, but the secret number is $secret.\n";
while (1) cfw_
print "Please enter a guess from 1 to 100: ";
chomp(my $guess = <STDIN>);
if ($guess