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
% 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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Cool, I can't believe it was that easy either!! :-)
ASKER