Skip to content

Commit

Permalink
README: improved 'jq' example
Browse files Browse the repository at this point in the history
  • Loading branch information
juk0de committed Jul 18, 2024
1 parent 491e45d commit 8f0b5ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,9 @@ To convert an MTF file to JSON, use the following command:
mtf2json --mtf-file <path_to_mtf_file> [--convert] [--json-file <path_to_json_file]
```

To query JSON data in the terminal (e.g. armor data), pipe the output into `jq`:
To query JSON data in the terminal (e.g. armor pips of left arm), pipe the output into `jq`:
```sh
mtf2json --mtf-file <path_to_mtf_file> | jq .armor
mtf2json --mtf-file <path_to_mtf_file> | jq .armor.left_arm.pips
```

### Library
Expand Down

0 comments on commit 8f0b5ba

Please sign in to comment.