[Tutor] extracting a column from many files

Alan Gauld alan.gauld at btinternet.com
Mon Feb 23 20:31:40 CET 2009


"Bala subramanian" <bala.biophysics at gmail.com> wrote

> I want to extract  1a1 2a1 3a1 from file 1, similarly 1a2 2a2 3a2 
> from file
> 2 ( same columns) and then make a new output file of the following 
> format
>
> 1a1 1a2 ---
> 2a1 2a2 ---
> 3a1 3a2 ---
>
> Similarly for the 2nd, 3rd, 4th..columns in the input files.

OK, So you want separate output files per column?
And each file contains the same column from each
of the input files?

So
output1.txt contains all of the column 1 data
output2.txt contains all of the column 2 data
and so on?

Alan G 




More information about the Tutor mailing list