Created
May 25, 2016 01:15
-
-
Save darkerego/24f01e4b7b567e0de9f1f855c5593268 to your computer and use it in GitHub Desktop.
Grep Dmesg Source/Dest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dmesg | tr ' ' '\n' | grep -iP "DPT|SRC\=" | sed "s/DPT=/:/" | sed "s/SRC=/ /" | tr -d '\n' | tr ' ' '\n' | grep "." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment