Question: Filtering, Text Processing, and Compiling Programs PART 1 : awk. Open a new terminal window on your Linux system. Type in ps and observe the
Filtering, Text Processing, and Compiling Programs
PART : awk.
Open a new terminal window on your Linux system.
Type in ps and observe the output.
Type in ps awk print and observe the output. It shouldn't impress you because it gave you the same output as the much shorter command in step above, with the addition of showing awk as a process.
Type in ps awk print $ and observe the output. It should be the same as step above.
Now try this: ps awk print $
Then this: ps awk print $
Observe the output of steps and and try to determine what is going on with the output ie what is awk doing?
Take a screenshot of the commands and output of steps Name it labscreenshot
Type in man awk and review the manual page entry.
Type in clear.
Type in cat etcshells and observe the output.
Type in awk F print $NFetcshells and observe the output and compare it to the output of step above.
Type in awk F print $NFetcshells sort u and observe the output and compare it to the output of step above.
Take a screenshot of the commands and output of steps Name it labscreenshot
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
