Last active
August 29, 2015 14:04
-
-
Save rubo77/082dacc5a4858528b09f to your computer and use it in GitHub Desktop.
alfred-log.sh
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 characters
nodes='cat alfred.json'; | |
files=logs/nodes; | |
mkdir -p $files; | |
$nodes|jq '.[].network.mac'|while read i; do | |
$nodes |jq '.['$i']' > $files/$($nodes |jq '.['$i'].hostname'); | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment