aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-09-01 09:52:41 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-09-01 09:52:41 +1200
commit53f4c20d8fc22f8d0113a5cd2a42c26d7c626c3f (patch)
treef10a16a6a2a9b34b651bfc0ab7cc640c37958d51 /bin
parentAdd mark-directories explicitly to inputrc (diff)
downloaddotfiles-53f4c20d8fc22f8d0113a5cd2a42c26d7c626c3f.tar.gz
dotfiles-53f4c20d8fc22f8d0113a5cd2a42c26d7c626c3f.zip
Add cfr(1df)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cfr4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/cfr b/bin/cfr
new file mode 100755
index 00000000..9bb0e3bb
--- /dev/null
+++ b/bin/cfr
@@ -0,0 +1,4 @@
+#!/bin/sh
+# Count files recursively with find(1); this includes the given directories
+# themselves and their subdirectories as entries
+find "${@:-"$PWD"}" -printf . | wc -c