============================== Sample Solution to Exercise #2 ============================== -IAN! idallen@ncf.ca If you work on ACADUNIX, I recommend calling up the BASH shell when you first log in, and also set your TERM type and erase character if needed. $ bash bash-2.05$ bash-2.05$ TERM=vt100 bash-2.05$ stty erase '^?' bash-2.05$ PS1='$ ' $ $ 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 2 due January 24, 2003 ^D $ ftp ftp.ncf.ca Connected to freenet4.carleton.ca. 220 freenet4 FTP server (SunOS 5.7) ready. Name (ftp.ncf.ca:abcd0123): anonymous 331 Guest login ok, send ident as password. Password: 230 Guest login ok, access restrictions apply. ftp> cd aa610/pub 250 CWD command successful. ftp> get right-to-read.txt local: right-to-read.txt remote: right-to-read.txt 226 Binary Transfer complete. 12724 bytes received in 0.21 seconds (59 Kbytes/s) ftp> get can-you-trust.txt local: can-you-trust.txt remote: can-you-trust.txt 226 Binary Transfer complete. 12060 bytes received in 0.2 seconds (58 Kbytes/s) ftp> quit 221 Goodbye. $ head -2 right-to-read.txt >file2.txt $ head -146 right-to-read.txt | tail -14 >file3.txt $ head -189 can-you-trust.txt | tail -18 >file4.txt $ cat file* >myout.txt $ ls -li myout.txt >file5.txt $ cat myout.txt file5.txt >answer.txt $ mv answer.txt abcd0123.linuxrocks $ ftp ftp.ncf.ca Connected to freenet4.carleton.ca. 220 freenet4 FTP server (SunOS 5.7) ready. Name (ftp.ncf.ca:abcd0123): anonymous 331 Guest login ok, send ident as password. Password: 230 Guest login ok, access restrictions apply. ftp> cd aa610/uploads 250 CWD command successful. ftp> put abcd0123.linuxrocks local: abcd0123.linuxrocks remote: abcd0123.linuxrocks 226 Binary Transfer complete. ftp> quit 221 Goodbye. $ exit