MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How to import DTA files conatining comment lines starting with '#'


On 24 Sep 1998, Joel Wijngaarde <Joel Wijngaarde wrote:

> Hi,
> 
> is there a way  ti import Data Files containing numbers where it's
> possible that certain lines in the file start with an "#", which means
> that this is a comment line and should not be read by mathematica.
> 

On a Unix(-like) system, something like

  ReadList[ "!sed /^#/d < your_file" ]

should filter out the comment lines.

Regards,

Timo Felbinger   (Timo.Felbinger at quantum.physik.uni-potsdam.de) Quantum
Physics Group
Institute of Physics
University of Potsdam, Germany




  • Prev by Date: Re: Plotting (x,y,z) style data
  • Next by Date: Copy and Paste
  • Previous by thread: FindRoot, a big Jacobian, and bivariate probit model
  • Next by thread: Copy and Paste