2007-02-26から1日間の記事一覧

mecabでUTF-8

apt-get install mecab-ipadic cd cd /usr/share/mecab/dic/ipadic/ dicrc の charset = utf8 に変更し、このディレクトリのファイルを全てutf8へ変換。 for i in * ; do mv $i $i.euc; nkf -w $i.euc > $i; done 辞書をmecabに取り込む dpkg-reconfigure me…

smtp on perl

#!/usr/bin/perl # メール送信 # perl mail.pl -from xxxxx@xxxx.com -to sender@xxxx.net -cc xxx@xxxxx.ne.jp -cc xxx@xxxxx.co.jp use Net::SMTP; use Getopt::Long; GetOptions('from=s'=>\$from,'to=s'=>\$to,'cc=s'=>\@cc,'subject=s'=>\$subject); if…