Newsgroups: fj.unix
Path: galaxy.trc.rwcp.or.jp!news.trc!etlnews.etl.go.jp!wnoc-tyo-news!newsfeed.btnis.ad.jp!newsbase.nisiq.net!newsgate1.web.ad.jp!newsfeed.infoweb.or.jp!ha!news.rion.co.jp!not-for-mail
From: mats@svmail.rion.co.jp (Shin'ya Matsushita)
Subject: Re: [Q] How to use find utility.
Message-ID: <487ce$10817.3d8@news.rion.co.jp>
Date: Wed, 08 Apr 1998 07:08:23 GMT
References: <6gdivq$qm0$1@wise31.mn.waseda.ac.jp>
Organization: RION Co., Ltd.
In-reply-to: Takafumi Murakami's message of 7 Apr 1998 16:07:22 GMT
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=ISO-2022-JP
Lines: 29
Xref: galaxy.trc.rwcp.or.jp fj.unix:10759
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.unix&nb=10759&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.

$B$^$D$7$?!w%j%*%s$G$9!#(B

In article <6gdivq$qm0$1@wise31.mn.waseda.ac.jp> 
Takafumi Murakami <g96d1661@mn.waseda.ac.jp> writes:

> ~/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

$B$o$?$7$O!$IaCJ(Btcsh$B$r;H$C$F$$$k$N$G!$$3$&$$$C$?:n6H$O(B
foreach $B$G$d$C$F$7$^$$$^$9!#(B

% cd public_html.sjis
% foreach x ( * ) 
? nkf -Se ${x} > ../public_html/${x}
? end

$B$C$F$J46$8$G$9!#(Bcsh$B$G$bBg>fIW$@$H;W$$$^$9!#(B

--
$B$^$D$7$?(B $B$7$s$d(B
mats@svmail.rion.co.jp

