============================== Sample Solution to Exercise #3 ============================== -IAN! idallen@ncf.ca All commands must be done on ACADUNIX. I recommend calling up the BASH shell when you first log in. $ bash bash-2.05$ bash-2.05$ TERM=vt100 bash-2.05$ stty erase '^?' bash-2.05$ PS1='$ ' $ $ mkdir empty $ cd empty $ cat >file1.txt Student Name: Eileen Dover Algonquin EMail Address: abcd0123 Student Number: 123-456-789 Course Number: DAT2330 Lab Section Number: 000 Professor Name: Ian Allen Assignment Name/Number/Date: Exercise 3 due January 31, 2003 ^D $ cp /thome/alleni/course/dat2330/03w/secret.tar.gz secret.tar.gz $ /usr/local/bin/tar -xzf secret.tar.gz $ ls -lA dr-xr-xr-x 3 abcd0123 student 512 Jan 28 01:29 .secret/ ---x--x--x 1 abcd0123 student 5148 Jan 30 16:08 README.txt* -rw-r--r-- 1 abcd0123 student 12228 Jan 30 16:08 secret.tar.gz $ rm secret.tar.gz $ chmod u+r README.txt $ less README.txt $ chmod u+rx .secret $ cd .secret $ ls -la ...much output here... $ chmod u+rx .open4 $ cd .open4 $ ls -la ...much output here... $ chmod u+rwx .source2 $ cd .source2 $ ls -la ...much output here... $ chmod u+r .file* $ file .file* | less $ mv .filei opensource.txt.gz $ rm .file* $ mv opensource.txt.gz ../../.. $ cd ../../.. $ gunzip opensource.txt.gz $ sum opensource.txt 35008 17 opensource.txt $ wc opensource.txt 290 2474 16659 opensource.txt $ head -240 opensource.txt | tail -190 >trimmed.txt $ sum trimmed.txt 19835 11 trimmed.txt $ wc trimmed.txt 190 1560 10737 trimmed.txt $ unset LANG # fix sort collating sequence on ACADUNIX $ sort trimmed.txt | uniq >sorted.txt $ sum sorted.txt 12363 8 sorted.txt $ wc sorted.txt 139 1174 8032 sorted.txt $ pwd >file2.txt $ sum * >file3.txt $ wc * >file4.txt $ ls -lia >file5.txt $ ~alleni/bin/submit 03 * $ exit $ exit