Question: Hello everyone! I have to use Linux - Bash to solve the below problem I have the following catalogue ********************************************************************** 1. 01 MAR 7 1:55:

Hello everyone!

I have to use Linux - Bash to solve the below problem

I have the following catalogue

**********************************************************************

1. 01 MAR 7 1:55: 1.31 38.626N 23.746E 1Km ML=3.0

----------------------------------------------------------------------

**********************************************************************

2. 01 MAR 7

----------------------------------------------------------------------

**********************************************************************

3. 01 MAR 7 5: 2:21.78 38.668N 24.753E 20Km ML=3.4

----------------------------------------------------------------------

..........and go on..................

Now I have to make a different file with just the information between '**********' and '----------' (without *** and ----) and at the same time format the row by replacing the spaces at the time section (1:55: 1.31)with zeros (so to be (1:55:01.31)) and remove the "km" and "ML=" label (just the label not the values), remove the records with no data (just like in row 2 01 MAR 7) and remove the ascending order of the list at the beggining (1. , 2. 3. ...) and then format the list with a specific way. I thought to use an awk command and put the whole information in there but it doesnt work. This is just the first step at the task and I cant continuous without it.

Please some help..

Thank you very 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!