On Sun, 20 May 2012 21:10:51 +0200, Michael Ross wrote:
> Maybe you can use /usr/ports/converters/dosunix.
> 
>       Usage:
>         dosunix INPUTFILE OUTPUTFILE
> 
>       DosUnix converts files from DOS text format to Unix text format
>       by replacing each carriage return & newline pair with a single
>       newline character.
> 
> does not do backups, though.

If more complex conversions (including character sets) is
needed (which often is the case for non-US "Windows" files),
the "recode" port is very useful:

        % recode cp437..iso8859-1 <file>

It also doesn't do backups, which would be required to do
using a surrounding script.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to