Last active
January 25, 2016 00:08
-
-
Save AdrianKoshka/28e8297913b5d8622dfe to your computer and use it in GitHub Desktop.
sort your stuff!
This file contains 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 characters
#!/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