parse data using sh script
Hi,
I am a newbie to unix/shell scripting and i have a question on how to parse a txt file using perl in a sh script. I have a txt file that contains hundreds of lines with data like this....
X, Y, Latitude, Longitude
1, 142, -38.000000, -91.000000, 26.348
2, 142, 60.000000, -90.000000, 24.836
3, 142, 51.000000, -89.000000, 23.108
4, 142, -23.000000, -88.000000, 21.848
5, 142, -29.000000, -87.000000, 20.966
6, 142, 50.000000, -86.000000, 19.418
7, 142, 55.000000, -85.000000, 19.904
8, 142, 22.000000, -84.000000, 20.030
9, 142, -50.000000, -83.000000, 16.970
10, 142, 34.000000, -82.000000, 11.912
11, 142, -18.000000, -81.000000, 8.636
i am wanting to parse all lines with the latitudes between 0 90 and longitudes of 0 -179 and then place that content into another txt file....can this be done with a perl command using sh?
Thanks!