Create a file with the following information using either vi.
1 |
Ida |
Rather |
teacher |
2 |
Adrian |
Wall |
Historian |
3 |
Grant |
Hill |
Sportsman |
4 |
Bill |
Gates |
Genius |
5 |
Alex |
Bell |
Inventor |
Sort file
people by their last name, placing the results in a file
called peoplelast.
(Check your work by displaying peoplelast with the command more
peoplelast.)
Enter the sort command used: _______________________________________
Sort the original file people by their 'Occupation', displaying the output on the screen.
Enter the sort command used: _______________________________________
Example please
First command:
cat file_name | cut -d " " -f 3 | sort >peoplelast
more peoplelast
Second command:
cat file_name | awk '{print $4}' | sort
Create a file with the following information using either vi. 1 Ida Rather teacher 2 Adrian...
Create a file with the following information called presidents, using vi or pico, and again press the [tab] key between fields. Once again, make sure you include the line numbers (6,7,8, etc) 6 Abe Lincoln honest 7 James Munroe doctrine 8 Harry Truman buck.stops 9 James Madison civil.war 10 Jimmy Carter peanuts Append presidents to people using cat, call the new file peopletwo. Enter the command used to do the append:__________________________________ Remove the line numbers and the first tab stop,...