Skip to content

Instantly share code, notes, and snippets.

@Olical
Created June 30, 2011 15:09
Show Gist options
  • Save Olical/1056437 to your computer and use it in GitHub Desktop.
Save Olical/1056437 to your computer and use it in GitHub Desktop.
Multiline find and replace with sed
ifconfig eth0 | sed -n "s/.*HWaddr \([0-9A-Za-z:]*\).*/\1/p"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment