Question: I need help creating the linux grep with regular expression command to satisfy the following scenario. In network.txt, there are 6 columns (No., Time, Source
I need help creating the linux grep with regular expression command to satisfy the following scenario. In network.txt, there are 6 columns (No., Time, Source IP, Destination IP, Protocol, Info) See images for example. Image 1 is the first 3 columns and the image 2 is columns 4-6.


Write a command that prints the different protocols (5th column) along with the number of packets that used that protocol (there is one line in the file for each packet), sorted in decreasing order.
Destination239.255.255.250239.255.255.250239.255.255.25010.22.70.1239.255.255.250239.255.255.250ProtocolSSDPSSDPSSDPUDPSSDPSSDPInfoNOTIFY*HTTP/1.1NOTIFY*HTTP/1.1NOTIFY*HTTP/1.1Sourceport:1091Destinationport:8905NOTIFY*HTTP/1.1NOTIFY*HTTP/
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
