On the Mac a command line way to remove line endings would be something like


tr '\r' '\n' 

this command "translates" all carriage returns into new lines.  You can then use it in a shell loop

e.g.
#!/bin/bash
for file in *dat;
do
cat $file | tr '\r' '\n' > $file.out
end



On May 25, 2007, at 3:35 AM, Scott Calvin wrote:

Hi Bruce,

Thnks--your response helped me track down the nature of the problem. 
It turns out that if I "wash" the files.dat and paths.dat files by 
opening them on a pc and then saving them again, Artemis then does a 
little better, allowing me to read in path files that have themselves 
been washed. I suspect if I washed every text file in the directory, 
it might work smoothly (maybe I'll try running a calculation with 
only a handful of paths and doing that). The interesting thing to me 
is that the behavior is indeed platform-independent...Artemis on the 
Mac apparently needs the Feff files to have the pc end-of-line termination. :)

Does anyone out there have a simple way to btach convert a whole 
bunch of files from Mac CR line breaks to pc CR/LF line breaks? I'm 
not part of the linux or unix worlds, but can use either Windows XP 
or OS X methods.

--Scott Calvin
Sarah Lawrence College

At 02:11 PM 5/24/2007, Bruce Ravel wrote:

I see the same problem using the two files you sent.  My best guess
for the source of the problem is that Artemis is not finding the
"files.dat" and "paths.data" (or possibly "path00.dat") files in the
same place as the "feff.inp" and "feffNNNN.dat" files.  Artemis needs
those files to build the interpretation page and does not handle their
absence gracefully.


_______________________________________________
Ifeffit mailing list
Ifeffit@millenia.cars.aps.anl.gov
http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit

Paul Fons
Team Leader
Nano-Optics Research Team

Center for Applied Near-Field Optics
National Institute of Advanced Industrial Technology
Tsukuba Central 4, Higashi 1-1-1
Tsukuba, Ibaraki Japan 305-8562

tel. +81-298-61-5635
fax. +81-298-61-2939

The following lines are in a Japanese font
〒305-8562 茨城県つくば市つくば中央東 1-1-1
産業技術総合研究所
近接場光応用工学研究センター
近接場光基礎研究チーム チーム長
ポール・フォンス