Skip to content

Instantly share code, notes, and snippets.

@hiroyuki-sato
Created January 13, 2022 13:24
Show Gist options
  • Save hiroyuki-sato/a642913842bce9575881e9201d71535f to your computer and use it in GitHub Desktop.
Save hiroyuki-sato/a642913842bce9575881e9201d71535f to your computer and use it in GitHub Desktop.
N,NAME
1,林檎
2,蜜柑
3,白桃
4,南瓜
in:
  type: file
  path_prefix: /tmp/b/test.sj.txt
  parser:
    type: fixed
    charset: Shift_JIS
    newline: LF
    strip_whitespace: true
    columns:
    - { name: id, type: string, pos: 0..0 }
    - { name: name, type: string, pos: 2..3  }
out:
  type: stdout
+-----------+-------------+
| id:string | name:string |
+-----------+-------------+
|         N |          NA |
|         1 |          林檎 |
|         2 |          蜜柑 |
|         3 |          白桃 |
|         4 |          南瓜 |
+-----------+-------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment