Skip to content

Commit

Permalink
oh yeah, grep already does this.
Browse files Browse the repository at this point in the history
  • Loading branch information
jneen committed Jan 12, 2011
1 parent a90ff82 commit c98af3e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/util.sh
Expand Up @@ -12,13 +12,7 @@ exists() {
}

matches() {
test -n $(
if [ -n "$1" ]; then
echo $1; shift
else
cat -
fi | grep "$@"
)
grep "$@" >/dev/null
}

pluralize() {
Expand Down

0 comments on commit c98af3e

Please sign in to comment.