Quote:
Originally Posted by bishop2001
this works but its pretty lame. more compact way?
awk '{print $1}' file > 1;awk '{print $2}' file >> 1;awk '{print $3}' file >> 1
|
How does this deliver what you want??
Here is what I get running your suggestion:
Code:
$ awk '{print $1}' file > 1;awk '{print $2}' file >> 1;awk '{print $3}' file >> 1
$ cat 1
Something
average
123
Something
average
1
Something
average
5
01
max
215
02
max
10
19
max
12
min
0
min
5
min
2
The above to me does not look anything like your originally requested output.
So before I can deliver a solution I need to know which output you are after?
Also, are you really looking to make a file called '1'?