aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-08-11 17:47:11 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-08-11 18:06:52 +1200
commit5eb43a4ae7d4e749639d3e5e4535685d4c8fe324 (patch)
tree601895029af6e33d8a5408f382870e22066ebdba
parentLink to File::Find and find(1) docs (diff)
downloadcheckem-5eb43a4ae7d4e749639d3e5e4535685d4c8fe324.tar.gz
checkem-5eb43a4ae7d4e749639d3e5e4535685d4c8fe324.zip
Add some jokes
-rw-r--r--README.markdown6
1 files changed, 5 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown
index edf2b50..d09bc87 100644
--- a/README.markdown
+++ b/README.markdown
@@ -52,7 +52,11 @@ won't end up running a single hash comparison.
They're accurate, but you probably don't care. Filter them out by paragraph
block. If you have a POSIX-fearing `awk`, you could do something like this:
- $ checkem /dir | awk 'BEGIN{RS="";ORS="\n\n"} !/\/.git/'
+ $ checkem /dir | awk -v RS= -v ORS='\n\n' '!index($0,"/.git")'
+
+Or, if you were born after the Unix epoch:
+
+ $ checkem /dir | perl -00 -ne 'print if 0>index $_,"/.git"'
### How could I make it even quicker?