CIS 210 Homework Assignment #11

Due: Wednesday, Apr 30, 2008 by 3PM

Name:
Email:

All files created must be saved in your ~$USER/unix_class/ directory.

  1. Using vi, create a file in your class directory named one.txt. Enter the following information:
    Line 1: Today's date
    Line 2: Your full name
    Line 3: your unix username
    Line 4: The hostname that you are working on
    Line 5: The current time

  2. Copy the file /mnt/homes/CLASSES/unix/lab11/two.txt to your class directory. Edit the file with vi. Copy the sixth line and paste it three times at the end of the file.

  3. Copy the file /mnt/homes/CLASSES/unix/lab11/three.txt to your class directory. Edit the file with vi. Insert your email address between the fourth and fifth lines. Delete lines 7-11.

  4. Copy the file /mnt/homes/CLASSES/unix/lab11/four.txt to your class directory. Edit the file with vi and delete lines 2, 6, 8-16.

  5. With the file you've edited in the previous problem, replace all instances of "vim" with the text "VIM". Remember, UNIX is case sensitive.
  6. Concatenate the above four files into one file (use the "cat" command) called lab11_all.txt. Please copy and paste lab11_all.txt below.

last updated: 27 Apr 2008 19:08