Link to home
Start Free TrialLog in
Avatar of RudePuppyDog
RudePuppyDog

asked on

Grep output to columns

I know how to extract a field to a log file using:
% grep something filename | awk '{print $3}' > output.log

filename:
06/07, something TEST1 TEST2 blah blah TEST4

Is there a way to output 2 or more fields to a file in columns.

Output.log with $3 $4 $7:

TEST1 TEST2 TEST4
.
.
.
Thanx



ASKER CERTIFIED SOLUTION
Avatar of Julian Parker
Julian Parker
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RudePuppyDog
RudePuppyDog

ASKER

That is exactly what I meant ... cant believe it was that easy.  Brain Freeze.  Thanx
Cool, I can't believe it was that easy either!! :-)