From: Michele Andreoli ([email protected])
Date: Wed Dec 05 2001 - 22:52:16 CET
On Wed, Dec 05, 2001 at 11:33:09AM -0800, Joshua Hudson nicely wrote:
> dos2unix and unix2dos only work from tty or on single line files.
> They should be replaced with these instead:
>
> #!/bin/ash
> # mu dos2unix
> tr '\012#' '#\012' | sed 's/#$//' | tr '\012#' '#\012'
>
> #!/bin/ash
> # mu unix2dos
> tr '\012#' '#\012' | sed 's/$/#/' | tr '\012#' '#\012'
>
From tty? Please, explain better. These command in mu works
differently from standard Linuxes, because works only in pipe:
cat dos.txt | dos2unix > unix.txt
etc
Anyway: what means:
tr '\012#' '#\012' ?
I think, "tr" only translate a single char. The char # is placeholder??
Michele
-- I keep trying to locate a meeting of Quantum Physicists. But everytime they set a meeting time, the location changes. And vice versa -- Anonymous --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:21 CET