From 8d7c816f6cbd71485d96511ad9abda78dd179d98 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 14 Oct 2015 15:06:56 -0400 Subject: bkt: improve description --- bkt | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/bkt b/bkt index df949d8..608ce67 100755 --- a/bkt +++ b/bkt @@ -16,9 +16,10 @@ B -[cpiwWtxaBPnkFL] [...] [-e code] [-d delim ] [-f field] [-b list] =head1 DESCRIPTION -B reads input from files or standard input, optionally transforms -it according to various options, and counts like inputs. After all input -is read, a count is given for the occurrence of each input. +B reads input from files or standard input, splits it into records, +optionally transforms them according to various options, and counts like +records. After all input is read, a count and percentage is given for +the occurrence of each record. Given the following input: @@ -34,10 +35,13 @@ B will output: baz 1 20.0% foo 2 40.0% -The name 'B' comes from the concept of collecting like items in -buckets. The original plan was to name this script 'bucketize', but who -wants to type all that? Also, purely to support lazy typists, B -implements subsets of the functionality of B(1) and B(1). +The name 'B' comes from the concept of collecting like items +in buckets. The original plan was to name this script 'bucketize', +but who wants to type all that? Also, purely to support lazy typists, +B implements subsets of the functionality of B(1), B(1), +B(1), and B(1). B also allows executing arbitrary perl +code for each record, and supports various output options, including an +ASCII art histogram. The utility of B will be obvious, if you've written lots of variants of: -- cgit v1.2.3