Skip to content

Instantly share code, notes, and snippets.

@BruceChen7
Created February 23, 2023 04:20
Show Gist options
  • Save BruceChen7/8637ca8af92ce94dac2840b892e60677 to your computer and use it in GitHub Desktop.
Save BruceChen7/8637ca8af92ce94dac2840b892e60677 to your computer and use it in GitHub Desktop.
#shell#cli#ip

捕获活跃的接口

ifconfig | pcregrep -M -o '^[^\t:]+:([^\n]|\n\t)*status: active'
@BruceChen7
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment