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

_______________________________________________
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk

Reply via email to