aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-11-25 20:10:54 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-11-25 20:10:54 +1300
commite8b95f88c45f9c915d30f09bf337c47f14860e22 (patch)
treea68c8737c2efdc5f2dcbab4d47eb692331cb81d7 /bin
parentSimplify cf(1df) with a find(1) command (diff)
downloaddotfiles-e8b95f88c45f9c915d30f09bf337c47f14860e22.tar.gz
dotfiles-e8b95f88c45f9c915d30f09bf337c47f14860e22.zip
Add finc(1df)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/finc3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/finc b/bin/finc
new file mode 100755
index 00000000..e8e6b974
--- /dev/null
+++ b/bin/finc
@@ -0,0 +1,3 @@
+#!/bin/sh
+# Count the number of entries from a find(1) condition
+find "$@" -exec printf .%sx {} + | wc -c