Hi,
I've a problem. I need to take out values on a file.
I do something as:
awk '{ print ""$1"\t"$2"\t"$4""
}' /input > /output
But my file is as:
aa a tab bb tab cc tab dd
ff tab qq q tab gg dr tab koi
a a tab a tab c tab dd fd
gg tab c tab x c tab jf
where I put tab is a tab key: the problem is that sometimes values of some column have a space. For on example of above my output should be as:
aa a bb dd
ff qq q koi
a a a dd fd
gg c jf
How can I do it?
Thanks
I've a problem. I need to take out values on a file.
I do something as:
awk '{ print ""$1"\t"$2"\t"$4""
}' /input > /output
But my file is as:
aa a tab bb tab cc tab dd
ff tab qq q tab gg dr tab koi
a a tab a tab c tab dd fd
gg tab c tab x c tab jf
where I put tab is a tab key: the problem is that sometimes values of some column have a space. For on example of above my output should be as:
aa a bb dd
ff qq q koi
a a a dd fd
gg c jf
How can I do it?
Thanks