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
Get step-by-step solutions from verified subject matter experts
