2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

コマンドラインからcsvファイルをmarkdownの表に変換する際の備忘録

Posted at

コマンドラインからcsvファイルをmarkdownの表に変換する際の備忘録です

csvtomdを使います

https://github.com/mplewis/csvtomd
csvtomd: markdown tables made easy

インストール

sudo pip3 install csvtomd

テスト用のcsvファイルを用意する

test.csv
No,str1,str2
1,aaa,bbb
2,ccc,ddd
3,eee,fff

実行

$ cat test.csv | csvtomd
No  |  str1  |  str2
----|--------|------
1   |  aaa   |  bbb
2   |  ccc   |  ddd
3   |  eee   |  fff

便利!

参考

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?