Re: Q: Mass Text convert Linux-DOS?
On Fri, Mar 30, 2001 at 08:07:43AM +0200, Jonathan Gift wrote:
> Hi,
>
> I have a great many text files I have to convert from Linux to DOS
> format. I tries recode by hand once but it took hours. There has to be an
> automatic way.
>
> I tried the following but it only acted on the top level of directories
> and not the files and subdirectories below. Any help greatly
> appreciated:
>
> ----- Snip -----
>
> for file in ~/documents; do
> recode latin1..ibmpc $file
> done
>
> ----- Snip -----
Something like:
find ~/documents -type f -exec recode latin1..ibmpc \{} \;
No backups are made with this incantation! Others may have nicer
scripts...
--
Eric G. Miller <egm2@jps.net>
Reply to: