<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/xml.xsl" type="text/xsl"?><feed xmlns="http://www.w3.org/2005/Atom">
  <title>nulog, NULL::something : out of the headphone &gt; 2006 &gt; April &gt; 13 &gt; 一括文字コードへんかん</title>
  <link href="http://lowreal.net/logs/2006/04/13/2"/>
  <icon>http://lowreal.net/img/banner.png</icon>
  <link rel="self" type="application/atom+xml" href="http://lowreal.net/logs/2006/04/13/2.atom"/>
  <link rel="alternate" type="application/xhtml+xml" href="http://lowreal.net/logs/2006/04/13/2.xhtml"/>
  <updated>2006-04-13T01:26:07+09:00</updated>
  <author>
    <name>cho45(砂糖)</name>
  </author>
  <id>http://lowreal.net/2006/04/13/2</id>
  <entry>
    <title>一括文字コードへんかん</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2006/04/13/2.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2006/04/13/2.xhtml"/>
    <updated>2006-04-13T01:26:07+09:00</updated>
    <published>2006-04-13T01:26:07+09:00</published>
    <id>http://lowreal.net/2006/04/13/2</id>
    <category term="linux"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>どうやるのがスマートなんだろ。</p>
        <p>歌詞ファイルを諸事情で Shift_JIS で保存していたのだけれど、全部一括して utf-8 にしたくなった。</p>
        <p>いろいろぐぐってみたけど、なんかスマートにやる方法チマチマ探すのもバカっぽい気がしたので結局 <kbd>for f in *.txt ; do; lv "$f" &gt; tmp ; mv tmp "$f" ; done;</kbd> とかやった。だめじゃん</p>
        <ins datetime="2006-04-13T01:35:12+09:00">
          <p><kbd>nkf --overwrite</kbd> らしい。</p>
          <p><kbd>nkf -w --overwrite **/*.txt</kbd> とかでいいのかな？ やってないけど！</p>
        </ins>
      </div>
    </content>
  </entry>
</feed>
