{"blog_title":"hkoba blog","author_name":"hkoba501","url":"https://hkoba.hatenablog.com/entry/2018/05/09/174537","image_url":null,"author_url":"https://blog.hatena.ne.jp/hkoba501/","height":"190","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","published":"2018-05-09 17:45:37","type":"rich","categories":["zsh"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhkoba.hatenablog.com%2Fentry%2F2018%2F05%2F09%2F174537\" title=\" \u30e1\u30e2\uff1aZsh \u3067 TSV \u3092\u8aad\u307f\u305f\u3044\u3068\u304d\u3001\u3069\u3046\u3059\u308b\u304b - hkoba blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":" \u30e1\u30e2\uff1aZsh \u3067 TSV \u3092\u8aad\u307f\u305f\u3044\u3068\u304d\u3001\u3069\u3046\u3059\u308b\u304b","width":"100%","description":"\uff08\u3044\u3064\u3082\u901a\u308a\u3001\u30c4\u30c3\u30b3\u30df\u6b53\u8fce\u3067\u3059\uff09 \u554f\u984c \u4f8b\u3048\u3070 TSV (\u30bf\u30d6\u533a\u5207\u308a\u30c6\u30ad\u30b9\u30c8)\u5f62\u5f0f\u306e\u6b63\u8aa4\u8868\u304c\u3042\u308a\u3001\u305d\u3053\u304b\u3089 SQLite \u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3078\u66f4\u65b0\u3092\u304b\u3051\u305f\u3044\u2026 \u305d\u3093\u306a\u6642\u3001\u7686\u3055\u3093\u3060\u3063\u305f\u3089\u3069\u3046\u3057\u307e\u3059\u304b\uff1f \u306a\u304a\u3001\u30ec\u30b3\u30fc\u30c9\u6570\u306f1,000\u884c\u7a0b\u5ea6\u3068\u3057\u307e\u3059\u3002 \u79c1\u306f\u3053\u3046\u3044\u3046\u30b1\u30fc\u30b9\u3060\u3068 Zsh \u3092\u4f7f\u3063\u3066\u96d1\u306b UPDATE \u6587\u306e\u5217\u3092\u4f5c\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002 \u305f\u3060\u3001\u96d1\u306b\u66f8\u304d\u3059\u304e\u308b\u3068\u5165\u529b\u306e\u5f62\u5f0f\u306b\u3088\u3063\u3066\u306f\u4e0a\u624b\u304f\u884c\u304b\u306a\u3044\u306e\u3067\u3001\u305d\u306e\u8fba\u308a\u3092\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002 TL;DR IFS \u3067\u5206\u3051\u308b\u306a\u3001\u4e00\u884c\u4e38\u3005 IFS= read -r line \u3067\u8aad\u307f\u8fbc\u3093\u3067\u304b\u3089 col=( \"${(@ps:\\t:)line}\" ) \u3067\u914d\u5217\u306b\u5206\u3051\u3088\u3046\u3002\u2026","blog_url":"https://hkoba.hatenablog.com/","version":"1.0"}