Created
May 9, 2019 12:54
-
-
Save ensup/08e29682ff63dc19bf8866c20c45225b to your computer and use it in GitHub Desktop.
Revisions
-
ensup created this gist
May 9, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ #!/bin/bash ip addr | grep "inet " | grep brd | awk '{print $2}' | awk -F/ '{print $1}'