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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started