xcorp::When it rains, it pours.

"The nice thing about rain," said Eeyore, "is that it always stops. Eventually."

2008-12-13から1日間の記事一覧

続 Base64

続き。 まずは Perl で。 [xcorp@yield ~]$ cat base64.pl #!/usr/bin/perl use strict; use MIME::Base64; use Getopt::Long; my $optDecode = 0; GetOptions('d' => \$optDecode); while (<>) { $optDecode == 0 ? print encode_base64($_) : print decode…

Base64

http://www.sabamiso.net/yoggy/tdiary/?date=20081211#p01 より。 $ echo -n "hello world" | nkf -MB aGVsbG8gd29ybGQ= $ echo -n aGVsbG8gd29ybGQ= | nkf -mB hello world nkf だとコストが高そうなので、さっくり base64 コマンドで。 [xcorp@implicit ~…