Skip to content

Instantly share code, notes, and snippets.

@AdrianKoshka
Last active January 25, 2016 00:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdrianKoshka/28e8297913b5d8622dfe to your computer and use it in GitHub Desktop.
Save AdrianKoshka/28e8297913b5d8622dfe to your computer and use it in GitHub Desktop.
sort your stuff!
#!/usr/bin/env bash
for i in $(ls -1 scrubbed*); do
echo "hostname: $i"
cat $i | grep -e "MACAddress" | sed -e "s/^.*MACAddress=//g" -e "/^\s*$/d"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment