Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #43 from gwern/patch-5

update the examples; with the tr change and stdin working, we no longer ...
  • Loading branch information...
commit c42cbc92834dd19ce12797a0d3cba175d5eece35 2 parents 48f2b23 + 372b2db
@holman authored
Showing with 3 additions and 8 deletions.
  1. +3 −8 README.md
View
11 README.md
@@ -26,33 +26,28 @@ There's a lot of stuff you can do.
Number of commits to the github/github Git repository, by author:
-```bash
+```sh
› git shortlog -s |
cut -f1 |
- tr "\n" ',' |
- sed 's/ //g' |
spark
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▃▁▁▁▁▁▁▁▁▂▁▁▅▁▂▁▁▁▂▁▁▁▁▁▁▁▁▂▁▁▁▁▁▁▁▁▁▁▁▁▁▁
```
Magnitude of earthquakes over 1.0 in the last 24 hours:
-```bash
+```sh
› curl http://earthquake.usgs.gov/earthquakes/catalogs/eqs1day-M1.txt --silent |
sed '1d' |
cut -d, -f9 |
- tr "\n" ',' |
- sed 's/ //g' |
spark
▅▆▂▃▂▂▂▅▂▂▅▇▂▂▂▃▆▆▆▅▃▂▂▂▁▂▂▆▁▃▂▂▂▂▃▂▆▂▂▂▁▂▂▃▂▂▃▂▂▃▂▂▁▂▂▅▂▂▆▆▅▃▆
```
Code visualization. The number of characters of `spark` itself, by line, ignoring empty lines:
-```bash
+```sh
› awk '{ print length($0) }' spark |
grep -Ev 0 |
- tr "\n" ',' |
spark
▁▁▁▁▅▁▇▁▁▅▁▁▁▁▁▂▂▁▃▃▁▁▃▁▃▁▂▁▁▂▂▅▂▃▂▃▃▁▆▃▃▃▁▇▁▁▂▂▂▇▅▁▂▂▁▇▁▃▁▇▁▂▁▇▁▁▆▂▁▇▁▂▁▁▂▅▁▂▁▆▇▇▂▁▂▁▁▁▂▂▁▅▁▂▁▁▃▁▃▁▁▁▃▂▂▂▁▁▅▂▁▁▁▁▂▂▁▁▁▂▂
```
Please sign in to comment.
Something went wrong with that request. Please try again.