#find #subsets #command #succeed #maximal

app subsrch

Find maximal or minimal subsets that succeed a given command

1 unstable release

Uses old Rust 2015

0.1.0 Apr 20, 2018

#4 in #subsets

MIT license

15KB
417 lines

subsrch

Find maximal or minimal subsets that pass the given command.

# Finds the smallest subset of two lines that match 'qu'.
echo -e "foo\nbar\nbaz\nqux\nquux" | subsrch minimal -- sh -c "(grep qu | wc -l | xargs -I _ test _ -ge 2) > /dev/null"

Dependencies

~2MB
~47K SLoC