AMBER Archive (2006)

Subject: RE: AMBER: Difficulty loading a pdb file (Modified by Kara Di Giorgio)

From: Ross Walker (ross_at_rosswalker.co.uk)
Date: Wed Jun 14 2006 - 15:06:49 CDT


For the record - at least on RedHat EL4 there appears to be a mac2unix
command. Although I have never tried it (I just found it in fact)... Your
suggestion to use a 'better' editor is definately the way to go.
 
All the best
Ross

/\
\/
|\oss Walker

| HPC Consultant and Staff Scientist |
| San Diego Supercomputer Center |
| Tel: +1 858 822 0854 | EMail:- ross_at_rosswalker.co.uk |
| http://www.rosswalker.co.uk <http://www.rosswalker.co.uk/> | PGP Key
available on request |

Note: Electronic Mail is not secure, has no guarantee of delivery, may not
be read every day, and should not be used for urgent or sensitive issues.

 

  _____

From: owner-amber_at_scripps.edu [mailto:owner-amber_at_scripps.edu] On Behalf Of
Knut Langsetmo
Sent: Wednesday, June 14, 2006 12:56
To: amber_at_scripps.edu
Subject: Re: AMBER: Difficulty loading a pdb file (Modified by Kara Di
Giorgio)

the problem is in the original use of "textedit". the standard end of line
character in a mac is the carriage return character (which will show up
on the unix side as ^M), while in unix uses a line feed (dos/win uses
a carriage return-line feed pair). so the suggestion to use the command
dos2unix will not work in this case. there are many ways to deal with it.
the simple command "tr '\r' '\n' < macfile.txt > unixfile.txt" should work.
alternatively, you can use vi, and change from <cr>(mac) to <lf> (unix):
:set fileformat=unix
:w

or to change back the other way:
:set fileformat=mac
:w

it also works for windoz land:
:set fileformat=dos
:w

and to tell the difference:
set statusline=%<%f%h%m%r%=%{&ff}\ %l,%c%V\ %P

but my favorite is to use a different text editor in the first place. some
free
alternatives for the mac running osx are alphax (my favorite, mostly because

it was my first), and subethaedit (probably currently the best)

--knut

-----------------------------------------------------------------------
The AMBER Mail Reflector
To post, send mail to amber_at_scripps.edu
To unsubscribe, send "unsubscribe amber" to majordomo_at_scripps.edu