<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Yep, thanks for the confirmation.<br>
My next point (should awk close its files only after close of
relevant braces) was get everyone following this thread, to be
wary their data and the resulting number simultaneously open files
that might be required.<br>
<br>
As you say, "simple enough" (but if you don't think it through,
embarrassing results could be hidden in your (large dataset)
results.<br>
:-)<br>
<br>
Cheers for now,<br>
Zoltan<br>
<br>
On 2014/07/15 09:08, Matt Boyd wrote:<br>
</div>
<blockquote
cite="mid:CAFgHUGL_8b5ij9qYpGd9ug2-485aWrj9rSwQj4VmyMD20q-52g@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Zoltan,
<div>good point. I did a little reading and there were some
notes about awk / linux having issues if there were too many
files open at one time so my assumption is that all files are
open until the script finishes. My file was sorted and it
appears to have worked, but as I go through the data I'll keep
this in mind. I'll run it with >> to see if there is a
difference tomorrow. </div>
<div><br>
</div>
<div>regards<br>
Matt</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, Jul 15, 2014 at 4:47 PM, Zoltan
Szecsei <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:zoltans@geograph.co.za" target="_blank">zoltans@geograph.co.za</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>Hi,<br>
Can't test this now, and am a very novice awk user, but
if column 3 was <u>not</u> sorted, would only the last
contiguous set of records be in the output file(s)?<br>
In other words, when does awk close the output file, and
would '>>' be safer than '>' ?<br>
<br>
Regards,<br>
Zoltan
<div class=""><br>
<br>
<br>
On 2014/07/15 08:29, Matt Boyd wrote:<br>
</div>
</div>
<div class="">
<blockquote type="cite">
<div dir="ltr">I possibly shouldn't have bothered the
list but as I did, this is the script I used.
<div><br>
</div>
<div>awk -F, '{print > $3}' Filtered_data.csv<br>
</div>
<div><br>
</div>
<div>prints the whole line and creates a new file
named & based on column 3.</div>
<div><br>
</div>
<div>Simple enough to be embarrassing</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
</blockquote>
<br>
<br>
</div>
<span class="HOEnZb"><font color="#888888">
<pre cols="72">--
===========================================
Zoltan Szecsei PrGISc [PGP0031]
Geograph (Pty) Ltd.
GIS and Photogrammetric Services
P.O. Box 7, Muizenberg 7950, South Africa.
Mobile: <a moz-do-not-send="true" href="tel:%2B27-83-6004028" value="+27836004028" target="_blank">+27-83-6004028</a>
Fax: <a moz-do-not-send="true" href="tel:%2B27-86-6115323" value="+27866115323" target="_blank">+27-86-6115323</a> <a moz-do-not-send="true" href="http://www.geograph.co.za" target="_blank">www.geograph.co.za</a>
===========================================</pre>
</font></span></div>
<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a moz-do-not-send="true"
href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/qgis-user"
target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
===========================================
Zoltan Szecsei PrGISc [PGP0031]
Geograph (Pty) Ltd.
GIS and Photogrammetric Services
P.O. Box 7, Muizenberg 7950, South Africa.
Mobile: +27-83-6004028
Fax: +27-86-6115323 <a class="moz-txt-link-abbreviated" href="http://www.geograph.co.za">www.geograph.co.za</a>
===========================================</pre>
</body>
</html>