in reply to
Re^2: average a column in tab-delimited file
in thread average a column in tab-delimited file
To make life easier for you I will post a piece of code in here. Earlier today I had to transpose a large text file so I blurted out this piece of code. (Takes the rows from a file and makes them into a column)
It is a rather stupid code. (I'm a noob). For example it would not be prudent to actually load all the file into an array, but better to do it line by line in a while($line=<>) loop. etc. But Being a rather stupid code it should also be quite readily understandable and demonstrates the idea of getting columns out from your lines pretty well.
for (my $count=3;$count<=4215;$count++)
my @row=split(/\t/, $_);
As you can see this piece of code was used to extract columns 3 to 4215. You only need to extract one single column right now. Enjoy!