Question: Hello everyone! I am using Linux Bash and I have a catalogue of seismic events -------8 lines of header---------------------- (to get rid of this header

Hello everyone!

I am using Linux Bash and I have a catalogue of seismic events

-------8 lines of header---------------------- (to get rid of this header I suppose i have to use sed 'sed '1,8d'

yyyy-mo-dd hh:mm:ss.ss lat lon Depth mag(ML) 1995-01-01 05:20:59.02 39.500 24.150 17.00 2.6 1995-01-01 09:47:28.31 40.820 22.940 1.00 2.5 1995-01-01 09:50:58.27 39.230 22.910 17.00 2.4 1995-01-01 10:03:20.57 39.220 22.930 17.00 2.4 1995-01-01 10:04:14.59 39.220 22.970 13.00 3.1 1995-01-01 11:38:50.55 41.870 23.010 5.00 2.8

So now I have to ask the user to put the range of the Latitude and Longitude of the region of interest (for instance from latitude: 39.5 & longitude: 22.5 to latitude: 41.5 & longitude: 24.5) and then the minimum value of magnitude (ML) the user is interested and then based on the above criteria, create an output file with the same format as the original sorted by the magnitude (from the smallest one(min) to the maximum)

Some help please

Thank you so much in advance!!!!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!