Skip to content

Instantly share code, notes, and snippets.

@NICHOLAS85
Last active February 28, 2020 02:46
Show Gist options
  • Save NICHOLAS85/a01d5f64744e4924ec0a5d5fd112cbc1 to your computer and use it in GitHub Desktop.
Save NICHOLAS85/a01d5f64744e4924ec0a5d5fd112cbc1 to your computer and use it in GitHub Desktop.
List strata which provide input command
#!/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