|
Posted by Jasen Betts on 10/07/25 11:39
On 2006-02-07, Jim Michaels <jmichae3@nospam.yahoo.com> wrote:
> think tr can be used, but it may be the hard way to do it. On the UNIX box,
> make sure you install man pages (probably is by default, but make sure they
> are *all* installed). then try using
> man tr
> and
> man -k pc2unix
> or
> man -k pctounix | more
> or
> man -k crlf | more
> and see if any commands pop up.
> and remember that \r is a return, \n is a linefeed for the tr command (or
> most commands on UNIX). on a pc, \r\n is the sequence. on UNIX, I think
> it's simply \n.
on unix to convert from dos format
tr -d '\r' < dosfile > unixfile
to convert to dos format
sed 's/$/\r/' < unixfile >dosfile
converting unix files on dos/windows is harder, but there are a number of free tools
on simtel.net (or you can use sed and tr if you have them installed...)
Bye.
Jasen
Navigation:
[Reply to this message]
|