CIS 2101 Homework Assignment #11
Due: Friday, Dec 3, 2010 by noon
Name:
Email:
Using vi, create a file in your 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
Copy the file /mnt/homes/CLASSES/CIS2101/lab11/two.txt to your home directory. Edit the file with vi. Copy the sixth line and paste it three times at the end of the file.
Copy the file /mnt/homes/CLASSES/CIS2101/lab11/three.txt to your home directory. Edit the file with vi. Insert your email address between the fourth and fifth lines. Delete lines numbered 7-11.
Copy the file /mnt/homes/CLASSES/CIS2101/lab11/four.txt to your home directory. Edit the file with vi and delete lines 2, 6, 8-16.
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.
Concatenate the above four files, in order, into one file (use the "cat" command) called lab11_all.txt. Please copy and paste lab11_all.txt below.
last updated:
26 Oct 2011 16:06