Using the fixed length field file called famous.dat make a one-line Unix command - using pipe(s) - to display 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. Attention: Output from your solution MUST display the following: 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 thichNhat 94115 kropotkin peter 94115 chomsky 94116 noam squirrel rocketj 94122 chapman tracy 94211 marley rita 94212 black mary 94221 Task E Write a one-line Unix command - using pipe(s) - to display just the current day of the week in lower case (example: mon). Hint: cut the first part of the date command then pipe to the command tr Note: If you run command on a Sunday the output would be sun Your output will depend on the day of the week you run the command.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Linux Help 

Task D
Using the fixed length field file called famous.dat make a one-line Unix command - using
pipe(s) - to display 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.
Attention: Output from your solution MUST display the following:
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
thichNhat
94115
kropotkin
peter
94115
chomsky
noam
94116
squirrel
rocketJ
94122
chapman
tracy
94211
marley
rita
94212
black
mary
94221
Task E
Write a one-line Unix command - using pipe(s) - to display just the current day of the week
in lower case (example: mon).
Hint: cut the first part of the date command then pipe to the command tr
Note: If you run command on a Sunday the output would be
sun
Your output will depend on the day of the week you run the command.
Transcribed Image Text:Task D Using the fixed length field file called famous.dat make a one-line Unix command - using pipe(s) - to display 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. Attention: Output from your solution MUST display the following: 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 thichNhat 94115 kropotkin peter 94115 chomsky noam 94116 squirrel rocketJ 94122 chapman tracy 94211 marley rita 94212 black mary 94221 Task E Write a one-line Unix command - using pipe(s) - to display just the current day of the week in lower case (example: mon). Hint: cut the first part of the date command then pipe to the command tr Note: If you run command on a Sunday the output would be sun Your output will depend on the day of the week you run the command.
01 m motzart
amadeous
25 2nd 94233
02 m guthrie
03 f simone
woody
23 2nd 94223
nina
27 2nd 94112
04 m lennon
john
29 2nd 94221
05 f harris
06 m marley
еmmylou
20 2nd 94222
bob
22 2nd 94112
07 f marley
rita
26 2nd 94212
08 f warwick
09 m prine
dione
26 2nd 94222
john
35 3rd 94321
10 m franti
michael
34 3rd 94112
11 f black
mary
21 2nd 94221
12 m dylan
bob
37 Brd 94311
13 f baez
joan
36 3rd 94311
14 m richards
keith
42 4th 94112
15 m jagger
mick
41 4th 95115
16 т тcdonald
countryjoe
46 4th 94543
17 f chapman
tracy
43 4th 94211
18 m springstein
bruce
45 4th 94323
19 f mitchell
joni
40 4th 94444
20 f walker
alice
37 Brd 94332
21 f oliver
mary
47 4th 94114
22 m kotzwinkle
william
44 4th 94433
23 f kate
wilhelm
73 7th 94778
24 m heinlein
robert
74 7th 94765
25 m asimov
isaac
75 7th 94777
26 m moose
bullwinkle
16 1st 94111
27 m squirrel
rocket)
17 1st 94122
28 f fenwich
nell
13 1st 94221
29 m peobody
18 1st 94222
mr
30 m longlastname
longfirstname
11 1st 94313
31 m leaves
t
22 2nd 94223
32 m hanh
thichNhat
26 2nd 94115
33 m chomsky
noam
34 3rd 94116
34 m morrison
norman
71 7th 94771
35 f anthony
susanB
48 4th 94321
36 m kropotkin
peter
49 4th 94115
37 m gandhi
mohat mas
53 5th 95123
38 f tubman
harriet
50 5th 95555
39 m king
martinluther
52 5th 95112
40 m chavez
57 5th 95112
cesar
41 m douglas
frederick
66 6th 94666
42 f goldman
еmma
64 6th 94611
43 f mandela
nelson
60 6th 96543
44 f parks
rosa
72 7th 94777
45 m russell
bertrand
55 5th 94113
46 f lovelace
ada
56 5th 95123
47 m darwin
charles
59 5th 95123
48 m galileo
galileli
58 5th 95113
49 m einstein
albert
54 5th 94113
Transcribed Image Text:01 m motzart amadeous 25 2nd 94233 02 m guthrie 03 f simone woody 23 2nd 94223 nina 27 2nd 94112 04 m lennon john 29 2nd 94221 05 f harris 06 m marley еmmylou 20 2nd 94222 bob 22 2nd 94112 07 f marley rita 26 2nd 94212 08 f warwick 09 m prine dione 26 2nd 94222 john 35 3rd 94321 10 m franti michael 34 3rd 94112 11 f black mary 21 2nd 94221 12 m dylan bob 37 Brd 94311 13 f baez joan 36 3rd 94311 14 m richards keith 42 4th 94112 15 m jagger mick 41 4th 95115 16 т тcdonald countryjoe 46 4th 94543 17 f chapman tracy 43 4th 94211 18 m springstein bruce 45 4th 94323 19 f mitchell joni 40 4th 94444 20 f walker alice 37 Brd 94332 21 f oliver mary 47 4th 94114 22 m kotzwinkle william 44 4th 94433 23 f kate wilhelm 73 7th 94778 24 m heinlein robert 74 7th 94765 25 m asimov isaac 75 7th 94777 26 m moose bullwinkle 16 1st 94111 27 m squirrel rocket) 17 1st 94122 28 f fenwich nell 13 1st 94221 29 m peobody 18 1st 94222 mr 30 m longlastname longfirstname 11 1st 94313 31 m leaves t 22 2nd 94223 32 m hanh thichNhat 26 2nd 94115 33 m chomsky noam 34 3rd 94116 34 m morrison norman 71 7th 94771 35 f anthony susanB 48 4th 94321 36 m kropotkin peter 49 4th 94115 37 m gandhi mohat mas 53 5th 95123 38 f tubman harriet 50 5th 95555 39 m king martinluther 52 5th 95112 40 m chavez 57 5th 95112 cesar 41 m douglas frederick 66 6th 94666 42 f goldman еmma 64 6th 94611 43 f mandela nelson 60 6th 96543 44 f parks rosa 72 7th 94777 45 m russell bertrand 55 5th 94113 46 f lovelace ada 56 5th 95123 47 m darwin charles 59 5th 95123 48 m galileo galileli 58 5th 95113 49 m einstein albert 54 5th 94113
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY