Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello everyone! Using Bash-Linux I have a problem formatting my output file. After I have done everything else, I have to allign the columns with

Hello everyone!

Using Bash-Linux

I have a problem formatting my output file.

After I have done everything else, I have to allign the columns with a specific format. So what I have is:

''

01 MAR 7 1:55:01.31 38.626N 23.746E 1 3.0 01 MAR 7 5:02:21.78 38.668N 24.753E 20 3.4 01 MAR 7 14:53:24.24 41.248N 22.468E 7 2.0 01 MAR 7 18:10:28.03 37.693N 21.308E 3 3.1 01 MAR 7 20:46:30.18 40.843N 22.822E 12 2.0 01 MAR 7 21:14:57.84 40.109N 24.034E 11 2.2 02 MAR 7 9:56:00.86 40.839N 22.823E 1 3.2 .....

''

And now I have to put a header at the top and organize the columns as follows: (symbol : is the space)

DDMONYOrigin_TimeLatLonhML (the header)

01MAR71:55:01.3138.626N23.746E 13.0 (the general format for all the columns below)

I guess I use the command printf but I am not sure.

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

Database Systems For Advanced Applications 15th International Conference Dasfaa 2010 Tsukuba Japan April 2010 Proceedings Part 1 Lncs 5981

Authors: Hiroyuki Kitagawa ,Yoshiharu Ishikawa ,Wenjie Li ,Chiemi Watanabe

2010th Edition

3642120253, 978-3642120251

More Books

Students also viewed these Databases questions