Last active
June 20, 2018 14:38
-
-
Save wadewegner/57b366eac6a9d28adf409ec8d068e378 to your computer and use it in GitHub Desktop.
Revisions
-
wadewegner revised this gist
Jun 20, 2018 . 1 changed file with 3 additions and 0 deletions.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 @@ -1,5 +1,8 @@ # Usage: na # Expected output: en0 alias na="ifconfig | pcregrep -M -o '^[^\t:]+:([^\n]|\n\t)*status: active' | egrep -o -m 1 '^[^\t:]+'" # Usage: nr en0 nr() { sudo ifconfig $1 down;sleep 10;sudo ifconfig $1 up } -
wadewegner created this gist
Jun 20, 2018 .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,5 @@ alias na="ifconfig | pcregrep -M -o '^[^\t:]+:([^\n]|\n\t)*status: active' | egrep -o -m 1 '^[^\t:]+'" nr() { sudo ifconfig $1 down;sleep 10;sudo ifconfig $1 up }