Again, I have about 150 files with the following data with no header
x1 y1 z1
x2 y2 z2
…
zn yn zn
The delimiter happens to be tab key. How could I use sed and batch processing for these 150 files to achieve the following output:
x1
x2
x3
…
xn
y1
y2
y3
…
yn
z1
z2
z3
..
zn
Any ideas would be appreciated.
NOTE: I posted similar question before, not duplicate. Please see this link.
Regards,
ikel
I don’t think
sedis the best tool for this job. The simplest solution that comes to mind simply involves usingcutthree times:Contents of
file:Results:
For batch processing your files assuming you only have the files of interest in your present working directory: