Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuichiueda committed Jan 3, 2021
1 parent a19aed7 commit 8c0c82b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,10 @@ abcabc
* `-t <json/yaml/xml>`: read a json/yaml/xml file and set the data to an object "T".

```
$ echo '{"hoge":["a","b"]}' | opy -t json '[*D["hoge"]]'
$ echo '{"hoge":["a","b"]}' | opy -t json '[*T["hoge"]]'
a
b
$ echo -e 'aho:\n boke: ["a","b"]' | opy -t yaml '[*D["aho"]["boke"]]'
$ echo -e 'aho:\n boke: ["a","b"]' | opy -t yaml '[*T["aho"]["boke"]]'
a
b
$ echo -e '<?xml version="1.0" encoding="utf-8"?>\n<foo>bar</foo>' | opy -t xml '[e.text for e in T.iter("foo")]'
Expand Down

0 comments on commit 8c0c82b

Please sign in to comment.