diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2011-11-16 18:04:43 -0500 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2011-11-16 18:04:43 -0500 |
commit | 3a0c1faa604169f63db45620c5b1da5f130e9820 (patch) | |
tree | 2346793d0fc1299afd231f72c044fc4bd4270585 | |
parent | Add stdin documentation. (diff) | |
download | spark-master.tar.xz spark-master.zip |
-rw-r--r-- | README.md | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -17,12 +17,17 @@ scripts that can output in that format. If no arguments are passed, it will read from stdin a set of numbers delimited by any character except 0 through 9, - (dash), . (period), e, and E. - $ echo "12,1 6 8*3" | spark - █▂▅▆▃ + $ echo "7,6, 5, 4 3 2 1" | spark + █▇▆▅▄▃▂ + +It's pretty resilient on the input it will take, which should make shell scripting with it easier: + + $ echo "12,1 6 8*3,1i5i2(4 % 7 =3" | spark + █▂▅▆▃▂▄▂▃▅▃ Invoke help with `spark -h`. -## Example +## Examples Magnitude of earthquakes over 1.0 in the last 24 hours: @@ -36,6 +41,6 @@ Number of commits in a git repo per active day: Characters per line in spark.c: - $ awk '{ print length($0) }' spark.c | grep -Ev '^0$' | spark + $ awk '{print length($0)}' spark.c | grep -Ev '^0$' | spark ▂▂▂▂▂▂▂▃▁█▆▆▂▁▂▂▃▃▂▂▄▂▂▂▁▃▃▃▂▃▂▁▂▂▂▂▂▂▄▂▂▂▁▂▂▂▇▂▂▂▂▂▁▂▂▃▂▅▂▃▂▁▁▃▃▃▃▃▂▁▂▁▁▃▂▂▃▃▂▂▇▁▂▂▂▁ |