Browse Source

in2csv: better example for piping / `-f` flag

Hayden Schiff 9 năm trước cách đây
mục cha
commit
5676e5892d
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      pages/common/in2csv.md

+ 2 - 2
pages/common/in2csv.md

@@ -15,6 +15,6 @@
 
 `in2csv --sheet={{sheet_name}} {{data.xlsx}}`
 
-- Fetch csvkit's open issues from GitHub's JSON API, and convert them to CSV:
+- Pipe a JSON file to in2csv:
 
-`curl https://api.github.com/repos/onyxfish/csvkit/issues?state=open | in2csv -f json > issues.csv`
+`cat {{data.json}} | in2csv -f json > {{data.csv}}`