Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: tlug: Japanese encoding converters
- To: tlug@example.com
- Subject: Re: tlug: Japanese encoding converters
- From: Masanori Smiley Omote <masa@example.com>
- Date: Fri, 15 May 1998 10:23:46 +0900
- In-reply-to: Your message of Fri, 15 May 1998 09:51:27 +0900. <003601bd7f9b$99553ac0$1302a8c0@example.com>
- Reply-To: tlug@example.com
- Sender: owner-tlug@example.com
Hi Jonathan, Jonathan wrote: > Does anybody know of any nice, reliable programs that will batch convert > Japanese-encoded HTML files? My greatest need is for converting between > Shift-JIS and EUC. One that works recursively and can automatically seek > out every file in the directory structure it's aimed at would be especially > welcome. You may want ONE nice program to do that. But isn't it enough for you to do it with 'find' and 'nkf', although it may be slow? Prepare a (C-)shell script like: htmlconvert ---------------------------- #!/bin/csh -f set tmp = /tmp/htmlconvert.$$ nkf -e $1 > $tmp mv $tmp $1 ---------------------------- and put it in your bin directory, then invoke this: find . -name '*.html' -exec htmlconvert {} \; I think 'nkf' can't make output file with the same name as input file. If so, we should use 'nkf' via script or try to write multiple commands between "-exec" and "\;". I'm not sure how to do with the latter way. Regards, Smiley -- Masanori "Smiley/Smack" Omote work: omote@example.com home: masa@example.com -------------------------------------------------------------- Next Nomikai: 15 May Fri, 19:30 Tengu TokyoEkiMae 03-3275-3691 Next TLUG Meeting: 13 June Sat, Tokyo Station Yaesu gate 12:30 Featuring Stone and Turnbull on .rpm and .deb packages -------------------------------------------------------------- Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp
- References:
- tlug: Japanese encoding converters
- From: "Jonathan Byrne--3Web" <jq@example.com>
Home | Main Index | Thread Index
- Prev by Date: tlug: Japanese encoding converters
- Next by Date: Re: tlug: Japanese encoding converters
- Prev by thread: tlug: Japanese encoding converters
- Next by thread: Re: tlug: Japanese encoding converters
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links