I am reverting to your expertise for the following task, which most likely already has a one-liner solution that I can't really create.
I have a tab-separated file, like this:
id name position
1 Nick boss
2 George CEO
3 Christina CTO
and I want to split it in as many files as there are columns, and put the respective data in each of them. So far I am going about the stupid way, i.e. grepping the header, then create 3 individual files and then issue the `cut -f1`
etc command for each column. But I now have files with like 20 columns, so there must be a more clever way :)