Skip to content

Commit

Permalink
Merge branch 'master' of github.com:bitdivine/jline
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Murphy-Skvorzov committed Sep 28, 2015
2 parents 966de40 + 001c223 commit f4826fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ Then:
cat dat.jsonl | jline-sort foo.bar # Sorts on the key foo.bar
cat dat.jsonl | jline-filter 'foo.bat>9' # Selects just those lines
cat dat.jsonl | jline-select foo.bar:bar foo.bat:bat mitz # Returns lines such as {"bar":9,"bat":49,"mitz":"ding"}
cat dat.jsonl | jline-pretty # Pretty-prints the JSON
# For a full awk-like tool, write javascript:
cat dat.jsonl | jline-foreach 'console.log(Math.round(record.foo.bar / record.foo.bat))'
cat dat.jsonl | jline-foreach begin::global.sum=0 sum+=record.foo.bar end::'emit(sum)'
... etc

# Documentation
Expand Down

0 comments on commit f4826fb

Please sign in to comment.