Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Converting Encoding-- Mac SJIS to UTF8 Linux
- Date: Mon, 4 Aug 2003 23:37:54 -0400
- From: Viktor Pavlenko <vvp@example.com>
- Subject: Re: [tlug] Converting Encoding-- Mac SJIS to UTF8 Linux
- References: <200308040301.h74310Ew024300@example.com><5.1.1.8.2.20030805114614.00d7da38@example.com>
>>>>> "DR" == David Riggs <dariggs@example.com> writes: DR> recode sjis..u8 * DR> myconvert * DR> [...] But my question is, how to I make this recursive? I have DR> hundreds of files in scores of directories, and it can get to DR> be a mess, expecially if there is a problem, and errors are DR> all to easy to make. A simple sh/bash one-liner should help. Make backup of your directory and type this at bash prompt (assuming that all files beneath it should recursively be processed, if not check `man find` for the options that will help you to select the files you need to convert): for f in `find . -type f`; do echo "processing $f..."; recode sjis..u8 $f; myconvert $f; done If, as Brett notes, you get the error for number of parameters the `for' loop can handle, use the -exec option of find (but you probably can't pass more than one command there, you will need to make a shell script that executes your two conversion programs). -- Viktor
- Follow-Ups:
- Re: [tlug] Converting Encoding-- Mac SJIS to UTF8 Linux
- From: Brett Robson
- References:
- [tlug] Converting Encoding-- Mac SJIS to UTF8 Linux
- From: David Riggs
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Converting Encoding-- Mac SJIS to UTF8 Linux
- Next by Date: Re: [tlug] Converting Encoding-- Mac SJIS to UTF8 Linux
- Previous by thread: Re: [tlug] Converting Encoding-- Mac SJIS to UTF8 Linux
- Next by thread: Re: [tlug] Converting Encoding-- Mac SJIS to UTF8 Linux
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links