From 1bce3b33acbfcfbfa03f1174d6e00c125cd8625d Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 7 Jun 2020 14:04:20 -0400 Subject: Implement -exclude, a special form for convenient exclusions Fixes #8. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 1fcebbd..5cb0ca4 100644 --- a/README.md +++ b/README.md @@ -94,9 +94,9 @@ $ bfs -L haystack -name 'needle' `bfs` also adds some extra options that make some common tasks easier. -Compare `bfs -nohidden` to +Compare `bfs -name config -exclude -name .git` to - find -name '.?*' -prune -o -print + find ! \( -name '.git' -prune \) -name config Try it! -- cgit v1.2.3