<br>awesome, i didnt know that program<br><br><br>cheers<br><br><br><br>U.<br><br><br><div class="gmail_quote">2012/9/24 Miller Puckette <span dir="ltr">&lt;<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Cool looking data...<br>
<br>
I do this sort of thing a lot and usually use the wonderful &#39;awk&#39; program<br>
to massage the data before reading it onto Pd.  For this particular<br>
file it could be<br>
<br>
awk &#39;/:00/ {print  $5}&#39;<br>
<br>
(etc).<br>
<br>
cheers<br>
Miller<br>
<div><div class="h5"><br>
On Sun, Sep 23, 2012 at 11:26:22PM +0200, umberto torrez wrote:<br>
&gt; Hi list, i need to load .txt files with data into tables.<br>
&gt;<br>
&gt; But my .txt file is not forrmated and theres some texts i need to get rid<br>
&gt; from my files:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; my .txt looks like this:<br>
&gt;<br>
&gt;  Format                 IAGA-2002                                    |<br>
&gt;  Source of Data         Institute of Geophysics NAS of Ukraine       |<br>
&gt;  Station Name           Kiev Dymer                                   |<br>
&gt;  IAGA CODE              KIV                                          |<br>
&gt;  Geodetic Latitude      50.700                                       |<br>
&gt;  Geodetic Longitude     30.300                                       |<br>
&gt;  Elevation                                                           |<br>
&gt;  Reported               XYZF                                         |<br>
&gt;  Sensor Orientation                                                  |<br>
&gt;  Digital Sampling                                                    |<br>
&gt;  Data Interval Type     1-minute                                     |<br>
&gt;  Data Type              variation                                    |<br>
&gt;  # This data file was created using INTERMAGNET data                 |<br>
&gt;  # from the Edinburgh GIN. These data were acquired                  |<br>
&gt;  # from an INTERMAGNET reported data file.                           |<br>
&gt;  # Final data will be available on the INTERMAGNET DVD               |<br>
&gt;  # Go to <a href="http://www.intermagnet.org" target="_blank">www.intermagnet.org</a> for details on obtaining this product.  |<br>
&gt;  # CONDITIONS OF USE: The conditions of use for data provided        |<br>
&gt;  # through INTERMAGNET and acknowledgement templates can be found    |<br>
&gt;  # at <a href="http://www.intermagnet.org" target="_blank">www.intermagnet.org</a>                                            |<br>
&gt; DATE       TIME         DOY     KIVX      KIVY      KIVZ      KIVF   |<br>
&gt; 2011-08-22 00:00:00.000 234     19201.70   2411.10  46524.20  99999.00<br>
&gt; 2011-08-22 00:01:00.000 234     19201.50   2411.20  46524.20  99999.00<br>
&gt; 2011-08-22 00:02:00.000 234     19201.50   2411.20  46524.30  99999.00<br>
&gt; 2011-08-22 00:03:00.000 234     19201.40   2411.20  46524.30  99999.00<br>
&gt; 2011-08-22 00:04:00.000 234     19201.30   2411.20  46524.30  99999.00<br>
&gt; 2011-08-22 00:05:00.000 234     19201.20   2411.00  46524.40  99999.00<br>
&gt; 2011-08-22 00:06:00.000 234     19201.10   2410.80  46524.50  99999.00<br>
&gt; 2011-08-22 00:07:00.000 234     19201.00   2411.00  46524.50  99999.00<br>
&gt; 2011-08-22 00:08:00.000 234     19201.00   2411.20  46524.40  99999.00<br>
&gt; 2011-08-22 00:09:00.000 234     19201.10   2411.40  46524.30  99999.00<br>
&gt; 2011-08-22 00:10:00.000 234     19201.10   2411.60  46524.30  99999.00<br>
&gt; 2011-08-22 00:11:00.000 234     19201.00   2411.70  46524.30  99999.00<br>
&gt; 2011-08-22 00:12:00.000 234     19201.10   2411.70  46524.30  99999.00<br>
&gt; 2011-08-22 00:13:00.000 234     19201.20   2412.00  46524.30  99999.00<br>
&gt; 2011-08-22 00:14:00.000 234     19201.30   2411.90  46524.40  99999.00<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; and so on....<br>
&gt;<br>
&gt;<br>
&gt; I just need to load the 3 last colums into tables starting at line 20.<br>
&gt;<br>
&gt; Is it possible to tell pd to load just specific specific part of my .txt<br>
&gt; file?<br>
&gt; or which is the best approach for this?<br>
&gt;<br>
&gt; I can copy the data by hand but since i have tons of .txt files im looking<br>
&gt; for an automatic way of doing this.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; cheers<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Umberto.<br>
<br>
</div></div>&gt; _______________________________________________<br>
&gt; <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
&gt; UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br>
</blockquote></div><br>