<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hkoba501</author_name>
  <author_url>https://blog.hatena.ne.jp/hkoba501/</author_url>
  <blog_title>hkoba blog</blog_title>
  <blog_url>https://hkoba.hatenablog.com/</blog_url>
  <categories>
    <anon>zsh</anon>
  </categories>
  <description>（いつも通り、ツッコミ歓迎です） 問題 例えば TSV (タブ区切りテキスト)形式の正誤表があり、そこから SQLite のデータベースファイルへ更新をかけたい… そんな時、皆さんだったらどうしますか？ なお、レコード数は1,000行程度とします。 私はこういうケースだと Zsh を使って雑に UPDATE 文の列を作ることが多いです。 ただ、雑に書きすぎると入力の形式によっては上手く行かないので、その辺りをまとめてみました。 TL;DR IFS で分けるな、一行丸々 IFS= read -r line で読み込んでから col=( &quot;${(@ps:\t:)line}&quot; ) で配列に分けよう。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhkoba.hatenablog.com%2Fentry%2F2018%2F05%2F09%2F174537&quot; title=&quot; メモ：Zsh で TSV を読みたいとき、どうするか - hkoba blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-05-09 17:45:37</published>
  <title> メモ：Zsh で TSV を読みたいとき、どうするか</title>
  <type>rich</type>
  <url>https://hkoba.hatenablog.com/entry/2018/05/09/174537</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
