[98008 GNU/Linux For Beginners]
Session #3
12 September 2003
Lecture Slides:
Reading:
Exercises:
Here's an archive with a few sample
files. Extract it with
$ tar -xvzf playground.tar.gz
and use the contents of the playground folder to do:
1. Prepare a sorted list that shows how many times each IP my
provider gave me, occurs in my system's log. The list should be
of the form:
Number of occurences
|
IP address
|
8
|
141.154.220.12
|
6
|
162.221.0.124
|
5
|
66.211.106.10
|
1
|
135.123.78.4
|
You must create this list (without the headers) with one command only!
Chain multiple tools together (grep, cut, etc) to do it and show the
command you used in your answer.
2. Find at least 3 different ways to construct a file called SCS_Student_Data
that will look as follows:
Full Name
|
Address
|
Telephone
|
Rikos Kokoris
|
464 N.Craig street
|
412-452-2763
|
Mina Taleme
|
500 Forbes Ave.
|
412-352-4622
|
The list must consist of students that:
- Are in the SCS department
- Are enrolled for the F03 semester
- Have address information or telephone information available.