eliminate character with sed

Polytropon freebsd at edvax.de
Sun May 20 20:02:33 UTC 2012


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


More information about the freebsd-questions mailing list