commit 3b3646a4e66a4fe46acb975886bf4b360328d8e7 parent b7551bb0ff8906c1b87eb5271fbd3a64e19b1397 Author: z3bra <email@example.com> Date: Mon Feb 10 11:13:06 2014 Added license and readme Diffstat: LICENSE | 13 +++++++++++++ README | 31 +++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 0 deletions(-)
diff --git a/LICENSE b/LICENSE @@ -0,0 +1,13 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar <firstname.lastname@example.org> + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/README b/README @@ -0,0 +1,31 @@ +┏━╸┏━╸┏━┓╻ ╻┏┓╻╺┳╸ +┣╸ ┃ ┃ ┃┃ ┃┃┗┫ ┃ +╹ ┗━╸┗━┛┗━┛╹ ╹ ╹ + -- by z3bra +=========================== + +fcount counts the number of files within a directory, and outputs the total to +stdout. + +It basically does the same thing as `ls -lA|wc -l`, but ten times faster. + + ───── time fcount ~ + 59 + + real 0m0.001s + user 0m0.000s + sys 0m0.000s + + ───── time ls -Al ~|wc -l + 60 + + real 0m00m0.010s + user 0m00m0.010s + sys 0m00m0.003s + +Moreover, it gives the GOOD total (`ls -Al` gives you an extra line). +This could be useful within a status bar .. + + echo "mails: `fcount ~/mail/INBOX/new`" | bar + +Be creative!