Fwd: [OS X] Problem of using *.jnl in Ferret on Mac OS X

Andy Jacobson Andy.Jacobson at noaa.gov
Mon Feb 6 21:00:50 EST 2006



Begin forwarded message:

> From: Jian Ma <jianma at hawaii.edu>
> Date: February 6, 2006 3:20:25 PM MST
> To: Andy Jacobson <Andy.Jacobson at noaa.gov>
> Subject: Re: [OS X] Problem of using *.jnl in Ferret on Mac OS X
>
> Hi, Andy,
>
> I have found that the problem is caused by the different line end  
> between "\r\n" (Windows) and "\n" (Unix).
>
> I tried to solve it and found a way:
>
>     sed 's/^M//g' *.jnl > 1.jnl
>     vi 1.jnl
>     :%s/\r//g
>
> But this method sometimes doesn't work. Do you have any better idea?
>
> All the best,
> Jian
>
> **********************************
> Jian Ma
>
> Ph.D. Candidate
> Department of Meteorology
> University of Hawaii at Manoa
> **********************************
>
> 在 2006 二月 3,16:55,Andy Jacobson 写道:
>
>>
>>
>>>
>>> But a new problem appears when I use the *.jnl files which were  
>>> developed earlier by PC. For example, when I load a netcdf file  
>>> using *.jnl:
>>>
>>
>> Hmm, mysterious.  Is it possible that there are not proper line  
>> breaks?  If you open the jnl file in e.g., textedit, does it look OK?
>>
>>     -Andy
>>
>> --
>> Andy Jacobson
>>
>> andy.jacobson at noaa.gov
>>
>> NOAA/ESRL/GMD
>> 325 Broadway, R/GMD1
>> Boulder, CO 80305
>>
>>
>>
>>
>>
>

--
Andy Jacobson

andy.jacobson at noaa.gov

NOAA/ESRL/GMD
325 Broadway, R/GMD1
Boulder, CO 80305







More information about the OSX mailing list