harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko" <alexey.a.petre...@gmail.com>
Subject Re: [snapshot] Code frozen
Date Sun, 29 Apr 2007 08:24:18 GMT
2007/4/29, Xiao-Feng Li <xiaofeng.li@gmail.com>:
> On 4/29/07, Alexey Petrenko <alexey.a.petrenko@gmail.com> wrote:
> > Or just use dos2unix or unix2dos :)
>
> Yes, they are available in most platforms now. I use following command
> to convert a batch of files:
>
> find . -name "*" -type f | xargs dos2unix
Or
find . -name "*" -type f -exec dos2unix {} \;

:)

>
> (use any pattern to replace "*").
>
> Thanks,
> xiaofeng
>
> > 2007/4/29, Mikhail Fursov <mike.fursov@gmail.com>:
> > > On 4/29/07, Nathan Beyer <ndbeyer@apache.org> wrote:
> > > >
> > > > Just convert all of the line ending to the native format you're working
> > > > on.
> > > >
> > > > If you're on Windows, I'd used Notepad2. It has a nice display
> > > > whitespace feature and convert line endings feature.
> > >
> > >
> > > If you use Linux or have cygwin installed:
> > > sed -e 's/$/\r/' inputfile > outputfile # UNIX to DOS (adding CRs)
> > > sed -e 's/\r$//' inputfile > outputfile # DOS to UNIX (removing CRs)
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Mikhail Fursov
> > >
> >
>
>
> --
> http://xiao-feng.blogspot.com
>

Mime
View raw message