Advertisement

08.26.2008 at 09:32AM PDT, ID: 23679117 | Points: 50
[x]
Attachment Details

awk script how to

Asked by wocir in Shell Scripting, Unix Systems Programming, VB Script

Tags:

I have more than 50 files like:


~VAR INFO
VAR1.
VAR2.
VAR3.
VAR4.
...
VARN.
~ASCII LOG

  2930.000    82.4388    77.4473     2.2616   ...   -99999.0  
  2930.200    82.6295    75.9469     2.3194   ...   -99999.0
  2930.400    82.7334    73.5236     2.3281   ...   -99999.0
  ...                   ...                  ...         ...          ...        ...
  ...                   ...                  ...         ...          ...        ...
  ...                   ...                  ...         ...          ...        ...
 
------------------------------------------------------------------
So,  I would like to have an output like:

   VAR1         VAR2      VAR3        VAR4        ...       VARN
  2930.000    82.4388    77.4473     2.2616   ...   -99999.0  
  2930.200    82.6295    75.9469     2.3194   ...   -99999.0
  2930.400    82.7334    73.5236     2.3281   ...   -99999.0
  ...                   ...                  ...         ...          ...        ...
  ...                   ...                  ...         ...          ...        ...
  ...                   ...                  ...         ...          ...        ...

------------------------------------------------------------------

How can I do that using AWK ?

Can anyone help me?Start Free Trial
[+][-]08.26.2008 at 12:55PM PDT, ID: 22318720

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.26.2008 at 12:57PM PDT, ID: 22318744

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.26.2008 at 01:09PM PDT, ID: 22318876

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.26.2008 at 01:24PM PDT, ID: 22319029

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.26.2008 at 01:26PM PDT, ID: 22319059

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.26.2008 at 07:44PM PDT, ID: 22321454

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.27.2008 at 04:09AM PDT, ID: 22323303

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628