Created
March 16, 2017 15:39
-
-
Save freyes/523409ecfec5d5cf53a20d209dd57349 to your computer and use it in GitHub Desktop.
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
| #!/bin/bash | |
| for dname in `find . -maxdepth 1 -type d -name 'sosreport-*' `;do | |
| for NAME in $(grep jujud ${dname}/ps | grep unit- | awk -F' ' '{print $11}' | cut -d'/' -f6); do | |
| echo "${dname} -> ${NAME}" | |
| ln -s ${dname} $NAME | |
| done | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment