Created
September 29, 2020 18:44
-
-
Save gwollman/c13b04b1561f1189c8d34bc46c49a3ce to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
# Yes, I know you could do the egrep inside of sed. | |
zpool status | egrep '(pool|scan):' | sed '/pool/{N;s/ pool: //;s/\n scan//;}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment