Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases 28th British National Conference On Databases Bncod 28 Manchester Uk July 2011 Revised Selected Papers Lncs 7051

Authors: Alvaro A.A. Fernandes ,Alasdair J.G. Gray ,Khalid Belhajjame

2011th Edition

3642245765, 978-3642245763

More Books

Students also viewed these Databases questions

Question

What are psychologys main subfields?

Answered: 1 week ago

Question

Prepare and properly label figures and tables for written reports.

Answered: 1 week ago