Question: Execute the following 5 commands on your virtual machine. Then create a text file: awk_answers.txt, where you will write 5 sentences, one for each of
Execute the following 5 commands on your virtual machine. Then create a text file: awk_answers.txt, where you will write 5 sentences, one for each of the 5 commands, describing what the command did. Each sentence is worth up to 10 points. Submit awk_answers.txt command_1: cat /etc/passwd | awk -F: '{print $1, $2, $3, $7}' command_2: cat /etc/passwd | awk -F: '{printf "%12s : %s" $1 $5}' command_3: cat /etc/group | awk -F: '{printf "%15s : %s ", $1, $4}' command_4: echo "one two three four five" | awk '{print $5, $4, $3, $2, $1}' command_5: echo "1 2 3 4 5" | awk '{print $1 + $2 + $3 + $4 "." $5}'
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
