[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Q: Mass Text convert Linux-DOS?



On Fri, Mar 30, 2001 at 08:07:43AM +0200, Jonathan Gift wrote:
> 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.

You should try todos and fromdos in the sysutils package.

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

find ~/documents -exec todos {} \;

man find.  Learn all about find.  

Rob

-- 
Good day to avoid cops.  Crawl to school.



Reply to: