DEVOPS PRACTICAL PROBLEM



Practical Problem: Suppose you are working in a company XYZ and Your manager assign you the ticket list which contain different kind of  hardware issue like hard-disk issue,DIMM issue, PSU issue etc.He ask you to count issue occurrence . How will you solve this problem ?


Ans: 

Syntax : cat file-name | grep ISSUE-NAME | wc -l

Example:

$ cat list.txt | grep DIMM | wc -l
2
 
$ cat list.txt | grep PSU | wc -l
3

$ cat list.txt | grep hard-disk | wc -l
2

For more Practical Problems Please support us by Purchasing the below book:

Comments

Popular posts from this blog

Python & Shell Scripting Real Time Course Book & Videos

Top Five Devops Technical Interview QA Books

Linux-Command Hands-On (DF)