diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-11-25 20:10:54 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-11-25 20:10:54 +1300 |
commit | e8b95f88c45f9c915d30f09bf337c47f14860e22 (patch) | |
tree | a68c8737c2efdc5f2dcbab4d47eb692331cb81d7 /bin/finc | |
parent | Simplify cf(1df) with a find(1) command (diff) | |
download | dotfiles-e8b95f88c45f9c915d30f09bf337c47f14860e22.tar.gz dotfiles-e8b95f88c45f9c915d30f09bf337c47f14860e22.zip |
Add finc(1df)
Diffstat (limited to 'bin/finc')
-rwxr-xr-x | bin/finc | 3 |
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 |