~chambln/dots

f3615d73cd1fd167e79b53b30f0644f1d91f255d — Gregory Chamberlain 14 days ago d5b3878
sh: Add second hist example
1 files changed, 8 insertions(+), 1 deletions(-)

M sh/bin/hist
M sh/bin/hist => sh/bin/hist +8 -1
@@ 1,10 1,17 @@
#!/bin/sh -ef
# Prints a histogram of identical consecutive lines. Example:
# Prints a histogram of identical consecutive lines. Examples:
#
#     $ printf '%s\n' foo foo foo bar qux qux | $0
#     foo ===
#     bar =
#     qux ==
#
#     $ { seq 3; seq 4; seq 5; } | sort | $0
#     1 ===
#     2 ===
#     3 ===
#     4 ==
#     5 =

IFS=''
first=true