Manipulating file content
Hi list,
this one is for all the regexp, shell, and editing-experts on this
list. Suppose I have a comma-seperated or tab-seperated file and I want
to flip the lines and columns. So an input file like:
a,1,A
b,2,B
c,3,C
would be transformed into:
a,b,c
1,2,3
A,B,C
Is there an fast and easy way of doing this? Ideally through the shell
or with VIM. I would RTFM, but I have no clue which manual to read.
TIA,
Viktor
--
Viktor Rosenfeld
E-Mail: mailto:rosenfel@gmx.de
or: mailto:rosenfel@informatik.hu-berlin.de
HertzSCHLAG: http://www.informatik.hu-berlin.de/~rosenfel/hs/
Reply to: