CS 4010 Spring 2018

Lab 3

Find a computer and log into the OSX side using your CS login name and password.

Open Firefox and find the class web page.

Open TextWrangler - use the finder window and go to applications.
Open a new text file, called Lab3.txt, to record your work today - you will paste in some of your command lines. The header of the file should look like:
Your Name
CS 4010
Lab 3
February 18, 2019


Find the Terminal - use the finder window and go to applications and then utilities.

Make sure you have the examples from our book:


How to change your shell to bash

Here is a way that users can change their terminal to bash:
chsh -s /bin/bash
Then you have to enter your user password and open a new terminal window to see the changes.


Now let's practice with some basic unix commands.
Each command line and the results (as appropriate) should be pasted into your TextWrangler file:

How many lines are in shaver_etal.csv?  (write your answer in Lab3.txt)
Open shaver_etal.csv    using less
Find the last line with text in it and paste it into Lab3.txt (not just commas)

Now let's move on to Chapter 5:
Each command line and the results (as appropriate) should be pasted into your TextWrangler file:

Find out how many lines in shaver_etal.csv have Goose lake and  July (this may take several steps and involve grep)

Go through the example on page 76 of searching across multiple files with grep.

Work though the curl examples on page 79 of the book. You will need to use the urls from the errata:
http://practicalcomputing.org/feedback


Turn it in:
Go to the CS Homework Submission System: https://www.cs.csustan.edu/cshomework/
Choose: instructor Martin
              Spring 2019
              CS4010
              Lab3
Upload the your Lab3.txt file as prompted.