Question: Hello everyone, once again I need help Using Bash Linux After I read an input file I have to create an output file, in which

Hello everyone, once again I need help

Using Bash Linux

After I read an input file I have to create an output file, in which I have to create a header as follow:

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

* SEISMOLOGICAL STATION *

* GEOPHYSICS *

* *

*------------------------------------------------------------------------*

* PRELIMINARY EARTHQUAKE CATALOGUE *

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

YYYY MM DD hh:mm:ss.ss lat_N lon_E Depth(km) Mw Region

So the first lines should be in the middle of the page and the last line(YYYY MM DD hh:mm:ss.ss lat_N lon_E Depth(km) Mw Region) should start from the beginning of the line

I thought about using printf (%b\t\t ) to centralize but I think awk is better (and the professors prefer it) but I dont know how.

Some help please!

Thank you so much

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!