#!/bin/bash

#awk '{printf"\{\"x\":%f, \"y\":%f\},\n",$1,$2}' /usr/local/gmt/contornos/isla_chira.txt

awk -F\, '{if($1<=-82 )printf"\{\"x\":%f, \"y\":%f\},\n",$1,$2}' pan2.txt > pan3.txt
awk -F\, '{if($2 <= 12 )printf"\{\"x\":%f, \"y\":%f\},\n",$1,$2}' nic3.txt > nic4.txt


awk '{if($2 <= 12 )printf"\{\"x\":%f, \"y\":%f\},\n",$1,$2}' /usr/local/gmt/contornos/isla_ometepe_contorno.kml.txt > isla_nic1.txt


awk '{if($2 <= 12 )printf"\{\"x\":%f, \"y\":%f\},\n",$1,$2}' otros/p1.txt > p1.txt
awk '{if($2 <= 12 )printf"\{\"x\":%f, \"y\":%f\},\n",$1,$2}' otros/p2.txt > p2.txt
awk '{if($2 <= 12 )printf"\{\"x\":%f, \"y\":%f\},\n",$1,$2}' otros/p3.txt > p3.txt
awk '{if($2 <= 12 )printf"\{\"x\":%f, \"y\":%f\},\n",$1,$2}' otros/p4.txt > p4.txt
awk '{if($2 <= 12 )printf"\{\"x\":%f, \"y\":%f\},\n",$1,$2}' otros/p5.txt > p5.txt
awk '{if($2 <= 12 )printf"\{\"x\":%f, \"y\":%f\},\n",$1,$2}' otros/p6.txt > p6.txt
awk '{if($2 <= 12 )printf"\{\"x\":%f, \"y\":%f\},\n",$1,$2}' otros/p7.txt > p7.txt

awk '{if($2 <= 12 )printf"\{\"x\":%f, \"y\":%f\},\n",$1,$2}' otros/p8.txt > p8.txt
awk '{if($2 <= 12 )printf"\{\"x\":%f, \"y\":%f\},\n",$1,$2}' otros/p9.txt > p9.txt
awk '{if($2 <= 12 )printf"\{\"x\":%f, \"y\":%f\},\n",$1,$2}' otros/p10.txt > p10.txt



