Question
Questions 1-2 must be answered in must be answered in UNIX vi. Questions 3-4 must be answered in the UNIX command line. Do NOT answer
Questions 1-2 must be answered in must be answered in UNIX vi. Questions 3-4 must be answered in the UNIX command line. Do NOT answer them in a programming language or any sort of pieces of code!!!
Consider the file who2tmp below
1. Give the exact display after youve given the commands below (2)
-bash-3.2$ vi who2tmp
2. Suppose you continue from 1) above with the keystrokes below. Describe completely the contents of the two files in this exercise (2*2)
:w whom
3. Give the output of each of the commands below (2*2)
a. -bash-3.2$ grep ([A2] who2tmp
b. -bash-3.2$ grep [12][12]:[023] who2tmp
4. Provide the command to perform the tasks below on file who2tmp (2 + 3)
a. Sort in ascending order by days (of the month) and print the first 3 lines
b. Replace the character / with space, then sort by the station number and days of the month, and print the last 2 fields.
IFT383 Qui73b 031717 Insert Draw Lesign Layout Reterences Mailings Review View Tell me what you want to do File Home nantcov AaBb AaBb AaBbc Aatboel AaB,C AaB Aria Ee copy Paste mphasis 1 Heading 1 Heading 21 Heading 3 1 Norm Subtitle No Spac. Subtle Em Format Painte -bash-3.2$ cat who2tmp douglast pts/1 Jun 10 01:45 (sss24-12.inre.asu.edu) gsenthil pts/2 Jun 9 11:01 (149.169.44.43) anato pts/3 Jun 10 00:06 (ss11-05.inre.asu.edu) bwood3 pts/5 Jun 10 01:45 (general .asu.edu nagraj1 pts/0 Jun 9 07:14 (tngate2.mot.com) shiue pts/9 Jun 9 06:50 (gate 11.mot.com) jirogers pts/12 Jun 7 20:13 (129.219.240.53) asad pts/14 Jun 9 11:00 (143.91.27.74) kanumuri pts/25 Jun 9 08:57 (gw-sjo1.sc. philips.com) jgeller pts/35 Jun 9 10:02 (geller22.ne.mediaone.net) terenc69 pts/34 Jun 9 16:04 (enpc1644.eas.asu.edu) smemran pts/50 Jun 9 14:19 (enmc1047.eas.asu.edu) johnose pts 54 Jun 9 15:02 (rs118ws127.internal.pcshs.com) crsmith pts/56 Jun 8 15:06 (208.46.190.14) a Ask me any Share Find Replace 0 PM 3/20/2017 IFT383 Qui73b 031717 Insert Draw Lesign Layout Reterences Mailings Review View Tell me what you want to do File Home nantcov AaBb AaBb AaBbc Aatboel AaB,C AaB Aria Ee copy Paste mphasis 1 Heading 1 Heading 21 Heading 3 1 Norm Subtitle No Spac. Subtle Em Format Painte -bash-3.2$ cat who2tmp douglast pts/1 Jun 10 01:45 (sss24-12.inre.asu.edu) gsenthil pts/2 Jun 9 11:01 (149.169.44.43) anato pts/3 Jun 10 00:06 (ss11-05.inre.asu.edu) bwood3 pts/5 Jun 10 01:45 (general .asu.edu nagraj1 pts/0 Jun 9 07:14 (tngate2.mot.com) shiue pts/9 Jun 9 06:50 (gate 11.mot.com) jirogers pts/12 Jun 7 20:13 (129.219.240.53) asad pts/14 Jun 9 11:00 (143.91.27.74) kanumuri pts/25 Jun 9 08:57 (gw-sjo1.sc. philips.com) jgeller pts/35 Jun 9 10:02 (geller22.ne.mediaone.net) terenc69 pts/34 Jun 9 16:04 (enpc1644.eas.asu.edu) smemran pts/50 Jun 9 14:19 (enmc1047.eas.asu.edu) johnose pts 54 Jun 9 15:02 (rs118ws127.internal.pcshs.com) crsmith pts/56 Jun 8 15:06 (208.46.190.14) a Ask me any Share Find Replace 0 PM 3/20/2017
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started