UNIX HOMEWORK (1) Use anonymous FTP to mahi.ucsd.edu to get the file "unix.tar" from the /pub/239 directory. Extract the files from this tar file and then decompress them. You should obtain a directory called UNIX that contains: data.dir/ procdata* procdata.log do.proc* procdata.c unix.notes procdata is the Sun compiled version of the the C program procdata.c and is not likely to run correctly on the Mac. So you will need to recompile procdata.c before running the program. To do this, simply enter: rm procdata (removes existing compiled version) make procdata (compiles and makes new executable) do.proc runs the example shown in the notes (AN EXAMPLE OF A UNIX SCRIPT TO PROCESS DATA). Change this script so that the numbers in the file are multiplied by 3, each line in the output file starts with "xx" before the output number, and the output file names end in ".proc3" and e-mail me a copy of this modified script. (2) Get a table of recent southern California earthquakes off the web at http://www.data.scec.org/recenteqs/ and then click on "all earthquakes" under Earthquake lists. Cut and paste this table into a plain text file. (Note: You can run Netscape from the Suns by simply typing netscape. On the Macs, I recommend using Safari) Use the UNIX sort command to sort this file in decreasing order of earthquake magnitude (The magnitude is in the 2nd column of this table). Mail me the first 10 lines of this sorted file (which should contain the 10 largest events).