3. Write an awk script to display records six through nine in loginfile and noth
ID: 3861401 • Letter: 3
Question
3. Write an awk script to display records six through nine in loginfile and nothing else.
4. Write an awk script to display all the even number records in file “loginfile.” Display its record numbers in front their records such as following: Hint: a % 2 == 0
5. Based on the example awkc6, write an awk script that takes two input values and output the larger of the two values.
6. Write an awk file that processes the contents of loginfile prints the name of the user who has logged in the maximum number of times on January 22.
Explanation / Answer
3. Write an awk script to display records six through nine in loginfile and nothing else.
note:
*****************************************************************************************************************************
4. Write an awk script to display all the even number records in file “loginfile.” Display its record numbers in front their records such as following: Hint: a % 2 == 0
note: NR - row number, NR%2 ==0 satifies to give even rows.
**************************************************************************************
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.