Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bitdivine committed Sep 23, 2015
1 parent d0f95f5 commit b3453eb
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 global.sum+=record.foo.bar end::'emit(global.sum)'
... etc

# Documentation
Expand Down

0 comments on commit b3453eb

Please sign in to comment.