comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: archivos
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: archivos [message #46878] Sat, 07 January 2006 14:36
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
hernan wrote:

> Como puedo leer un archivo de texto que tenga entre sus datos terminos
> que se expresan como strings. Vean el ejemplo por favor:
> # columnas: 13
> # filas: 20
> Nombre Ra Dec V B - V E_ra (arcsec) E_dec(arcsec) E_V E_(B-V)
> HD216956 22 57 59.330 -29 35 28.50 1,17 0.145 0.00079 0.00064 0,1 0.011
> HD216763 22 56 17.310 -32 30 30.60 4,2 0.952 0.00108 0.00058 0,1 0.032
> HD216336 22 52 52.010 -32 50 41.10 4,46 -0.037 0.00081 0.00059 0,1 0.007
> HD213728 22 34 26.000 -32 6 45.00 6,68 -0.071 0.00057 0.00043 0,1 0.005
> HD214748 22 40 59.570 -27 0 48.20 4,18 -0.105 0.00094 0.00050 0,1 0.010


sed 's/\,/./g' < test.txt > neu.txt

cheers

Reimar
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Screen Capture of Widget Applications
Next Topic: Re: Problem Compiling and Using Functions

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 08:04:00 PDT 2025

Total time taken to generate the page: 0.80107 seconds