diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-01 09:52:41 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-01 09:52:41 +1200 |
commit | 53f4c20d8fc22f8d0113a5cd2a42c26d7c626c3f (patch) | |
tree | f10a16a6a2a9b34b651bfc0ab7cc640c37958d51 /bin/cfr | |
parent | Add mark-directories explicitly to inputrc (diff) | |
download | dotfiles-53f4c20d8fc22f8d0113a5cd2a42c26d7c626c3f.tar.gz dotfiles-53f4c20d8fc22f8d0113a5cd2a42c26d7c626c3f.zip |
Add cfr(1df)
Diffstat (limited to 'bin/cfr')
-rwxr-xr-x | bin/cfr | 4 |
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 |