[OSM-talk] Filtering out errors from GPX file

Renaud MICHEL r.h.michel+osm at gmail.com
Wed Mar 11 09:43:56 GMT 2009


Le mercredi 11 mars 2009 à 05:16, Simon Wood a écrit :
> $ head -n 1 temp.unicsv > new.unicsv
> $ head -n -1 temp.unicsv | awk -F ',' '{if ($5<20) print $0;}' >>
> new.unicsv

You can do that with awk only:
$ awk 'NR==1||$5<20{print $0}' temp.unicsv > new.unicsv

Useful information anyway, thanks.

-- 
Renaud Michel




More information about the talk mailing list