Create a file that contains the following list, and then execute commands from within vim to sort the list and display it in two columns. (Hint: Refer to page 915 for more information on pr.)

Command mode
Input mode
Last Line mode
Work buffer
General-Purpose buffer
Named buffer
Regular Expression
Search String
Replacement String
Startup File
Repeat Factor


Sort the list by placing the cursor on the first character of the Work buffer
and giving the command !Gsort. Next use pr to display the file in two col-
umns (the –t option causes pr not to print a header and trailer). Place the
cursor on the first character of the file and give the command
!Gpr –2 –t.

Computer Science & Information Technology

You might also like to view...

The ________ command duplicates a selection and places it in the Clipboard

Fill in the blank(s) with correct word

Computer Science & Information Technology

An IT manager assigns programmers and systems analysts to maintenance projects if they have less than two years of experience or if they received an average or lower rating in their last performance evaluation. Do you agree with this practice?

What will be an ideal response?

Computer Science & Information Technology

When determining the input and output requirements for the design of an object oriented program

a. The classes of data should be developed at the same time. b. Format of the data should be developed at the same time. c. The output screen should be developed at the same time. d. All of the above. e. None of the above.

Computer Science & Information Technology

If the item being searched for is not in the array, binary search stops looking for it and reports that it is not there when

A) array index first > array index last. B) Boolean variable found equals false. C) Boolean variable found equals true. D) it finds a value larger than the search key. E) it has examined all the elements in the array.

Computer Science & Information Technology