I have a text file that contain large amount of data. Below shows some part of the data. I am required to create a separate European subset file. How do I filter them out using awk?
File columns are as follows: User ID, Latitude, Longitude, Venue category name, Country code(2-letter)
Text file containing:
3fd66200f964a52008e61ee3 40.726589 -73.995649 Deli / Bodega US
4eaef4f4722e4efd614ddb80 51.515470 -0.148605 Burger Joint GB
4eaef8325c5c7964424125c8 50.739561 4.253660 Vineyard BE
4e210f60d22d0a3f59f4cbfb 5.367963 103.097516 Racetrack MY
52373a6511d2d4fcba683886 41.434926 2.220326 Medical Center ES
476f8da1f964a520044d1fe3 40.695163 -73.995448 Thai Restaurant US
New text file should look like this:
4eaef4f4722e4efd614ddb80 51.515470 -0.148605 Burger Joint GB
4eaef8325c5c7964424125c8 50.739561 4.253660 Vineyard BE
52373a6511d2d4fcba683886 41.434926 2.220326 Medical Center ES
Note: I can either user latitude longitude bounding box or country code to extract the subset into a new file.