You are here: Re: Apache,MySql,PHP on Windows vs. Linux « PHP Programming Language « IT news, forums, messages
Re: Apache,MySql,PHP on Windows vs. Linux

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация