I am using a program called "dsk" to run analyses. I am interested in only a few lines of the analyses, and am using the following to retrieve those lines:
dsk -file <filename> | grep -Ei 'string1|string2|string3'
which gives me something like:
string1 : 13
string2 : 46
string3 : 39
*Edit: Reformatted to be more true to output (not tab limited, with 32 spaces, a colon, and another space in between fields)
However, I would like the output to look something like this:
string1 string2 string3
13 46 39
The answer Glenn provided generates the following, likely because the spaces are causing confusion:
string1 string2 string3
: : :