On 06/28/2009 02:24 AM, Luc Claeys wrote:
> Aram,
>
>> File generated with CAD/CAM system.
>> 0-4.5CAM11.nc  extention is "nc"
>> Type:NC File.
>> When open file it looks like 0-4.5CAM11.nc-Notepad
>
> I assume from the extension that you have edited the file with Notepad
> under Windows.
> Then the problem is likely caused by a 'carriage-return / newline'
> at the end of the line (as Frank has suggested).
>
>> Maybe i need to change extention to .txt and than take to UBUNTY -EMC2?
>
> The file extension is of no importance here.
>
>> In EMC2 I open text editor and use copy past.
>>
>> How i can detect problem?
>
> To see the invisible characters in the file, use the commands suggested
> by Rob and myself in earlier replies.  You can post the output of this
> command.
>
>
> You can get rid of the carriage return characters (cr = \r) with the command
>
>   tr -d '\r'<  bad-file.txt>  good-file.txt
>
> In which 'bad-file.txt' is the bad file,
> and 'good-file.txt' is a corrected copy.
> Watch the ',' and '>' tokens in the command above.
>
> Luc
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

   How about

      dos2unix -n 0-4.5CAM11.nc-Notepad 0-4.5CAM11.nc


   I find that it's easier for Linux newbies to understand a simple command.



Ne M'oubliez   ---Family Motto
Hope for the best, plan for the worst   ---Personal Motto
Veni, vidi, vici   ---Julius Caesar

------------------------------------------------------------------------------
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to