CIS 2101 Homework Assignment #10

Name:
Email:

  1. Using vi, create a file in your CLASSES home 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/CIS2101/lab10/two.txt to your CLASSES home 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/CIS2101/lab10/three.txt to your CLASSES home directory. Edit the file with vi. Insert your email address between the fourth and fifth lines. Delete lines numbered 7-11.

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

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

last updated: 17 Aug 2019 19:39