Last active
February 28, 2020 02:46
-
-
Save NICHOLAS85/a01d5f64744e4924ec0a5d5fd112cbc1 to your computer and use it in GitHub Desktop.
List strata which provide input command
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 sh | |
[ -n "$1" ] && input=$1 || return | |
for stratum in $(brl list -ei); do | |
/bedrock/bin/strat -r $stratum /usr/bin/env sh -c "command -v $input 1>/dev/null && printf \"$stratum provides $input\"\\\n" || true | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment