Task D: Using the fixed length field file called famous.dat, make a one-line Unix command - using pipe(s) - to display a list of last name, first name and zip only. Sort first on the zip code, then on...


this is my answer: cut famous.dat -c44-48,6-35 | sort -k3 -k2 | head -n15,  why can't print this, thank you



Task D: Using the fixed length field file called famous.dat, make a one-line Unix<br>command - using pipe(s) - to display a list of last name, first name and zip only. Sort first on the<br>zip code, then on last name when there are duplicate zip codes. To save on amount of output<br>produced, just display the first 15 lines of the output from the above, as the last command in the<br>pipe. Hint: zip codes are in columns 44 through 48.<br>Here is what the output should look like:<br>moose<br>bullwinkle<br>94111<br>franti<br>michael<br>94112<br>marley<br>bob<br>94112<br>richards<br>keith<br>94112<br>simone<br>nina<br>94112<br>einstein<br>albert<br>94113<br>russell<br>bertrand<br>94113<br>oliver<br>mary<br>94114<br>hanh<br>thịchNhat<br>94115<br>kropotkin<br>chomsky<br>peter<br>94115<br>noam<br>94116<br>squirrel<br>chapman<br>marley<br>rocketJ<br>94122<br>tracy<br>94211<br>rita<br>94212<br>black<br>mary<br>94221<br>

Extracted text: Task D: Using the fixed length field file called famous.dat, make a one-line Unix command - using pipe(s) - to display a list of last name, first name and zip only. Sort first on the zip code, then on last name when there are duplicate zip codes. To save on amount of output produced, just display the first 15 lines of the output from the above, as the last command in the pipe. Hint: zip codes are in columns 44 through 48. Here is what the output should look like: moose bullwinkle 94111 franti michael 94112 marley bob 94112 richards keith 94112 simone nina 94112 einstein albert 94113 russell bertrand 94113 oliver mary 94114 hanh thịchNhat 94115 kropotkin chomsky peter 94115 noam 94116 squirrel chapman marley rocketJ 94122 tracy 94211 rita 94212 black mary 94221

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here