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 Jim Michaels on 02/14/06 07:01

"Jasen Betts" <jasen@free.net.nz> wrote in message
news:3145.43e9b7d9.7f0@clunker.homenet...
> 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...)
>

there is also a project called GNUISH MSDOS. it only works with 8.3
filenames though, so you'll probably lose your long filename.

> 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

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