#!/bin/bash

# set a local path variable for convience.
data="/home/hopper/berezin/Data"
check="/home/hopper/berezin/Data/assn02_d"

# Problem A - Using cat, number all lines in mydata.txt
#  using full explicit path 
cat -n /home/hopper/berezin/Data/mydata.txt > A.out
# Check the output against the key.
diff $check/A.out A.out

# Problem B - Run quota with the option that allows you to specify 
#  which user to check and check yourself by hard coding your zid
#  quota is not applied to a file, so no path info needed.
quota -v z912730 > B.out
diff $check/B.out B.out

# Problem C - search a file for a specific string.
#  using path info stored in the $data variable.
grep howdy $data/some-file > C.out
diff $check/C.out C.out