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:
BUY-LINK: https://www.amazon.com/dp/B07NBMY8J6
Comments
Post a Comment