Newsgroups: fj.unix
Path: galaxy.trc.rwcp.or.jp!news.trc!nf2.iij.ad.jp!nr0.iij.ad.jp!news.iij.ad.jp!linkclub.or.jp!schnee!uinet.or.jp!Q.T.Honey!yynet.tama.tokyo.jp!nf2.spnet.ne.jp!news.cs.ritsumei.ac.jp!odins-suita!nuis!news.cc.nagoya-u.ac.jp!nfeed.gw.nagoya-u.ac.jp!vega2!ccsatoru
From: ccsatoru@vega.aichi-u.ac.jp (Satoru Takabayashi)
Subject: Re: [Q] How to use find utility.
Sender: news@vega2.aichi-u.ac.jp (News Master)
Message-ID: <Er2ovM.DE1@vega2.aichi-u.ac.jp>
Date: Wed, 8 Apr 1998 02:14:10 GMT
Lines: 30
References: <6gdivq$qm0$1@wise31.mn.waseda.ac.jp>
NNTP-Posting-Host: saturn.aichi-u.ac.jp
Organization: Aichi University Computer Center, Aichi University, Aichi, Japan.
X-Newsreader: mnews [version 1.20] 1996-12/08(Sun)
Xref: galaxy.trc.rwcp.or.jp fj.unix:10755
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.unix&nb=10755&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

$B9bNS(B@$B0&CNBg3X$H?=$7$^$9(B

g96d1661@mn.waseda.ac.jp wrote:

>~/public_html.sjis/ $B$H$$$&(B directory $B$N$J$+$K$"$k(B SJIS $B$N%U%!%$%k$r(B
>$BA4$F(B ~/public_html/ $B$H$$$&(B directory $B$K!"J8;z%3!<%I$r(B EUC $B$KJQ49$7$J$,$i(B
>$B%3%T!<$r$H$j$?$$$N$G$9!#(B
>
>$B$H$3$m$,(B
>find . -exec nkf -Se {} > ../public_html/{} \;
>$B$d(B
>find . -exec nkf -Se {} > ../public_html/`basename {}` \;
>$B$H$7$F$b(B {} $B$H$+(B basename $B$H$$$&%U%!%$%k$,$G$-$F$7$^$$$^$9!#(B
>$B2?$+$$$$J}K!$O$J$$$G$7$g$&$+!)(B

perl $B$r;H$&$H(B

% find . -print | perl -nle 'system("nkf -Se $_ >../public_html/$_") if -f'

$B$N$h$&$K$G$-$^$9$,!"%G%#%l%/%H%j$,3,AX9=B$$K$J$C$F$$$k$H:$$k$N$G(B 
QKC <URL:http://www.sail.t.u-tokyo.ac.jp/%7Esato/MySoft.html> $B$r;H$C(B
$B$F(B

% cp -r public_html.sjis public_html
% find public_html -type f -print| xargs qkc -s

$B$H$9$k$N$,9%$_$G$9!#(B

--
$B9bNS(B $BE/(B Satoru Takabayashi
