Re: Reading columns from a file

2003-08-20 Thread zsdc
Shahzad A Khalid wrote: I want to read the column mentioning 481 and leaving Cell?= portion. Then second col. ie 13/12, third col, 5th(AFFX-KurIL2_at) and 7th(13/13). > Please suggest how do i do that. The code i tried is as follows: Try this: #!/usr/bin/perl -wlna print "@F[0..2,4,6]"; Usag

Re: Reading columns from a file

2003-08-20 Thread John W. Krahn
Shahzad A Khalid wrote: > > Hi, Hello, > I have a similar problem that someone just asked about reading specific > columns from a file and writing to another file. Eventually, I want to > read the written file to be loaded into Matlab. Im having trouble writing > the regular expression for this

Reading columns from a file

2003-08-20 Thread Shahzad A Khalid
Hi, I have a similar problem that someone just asked about reading specific columns from a file and writing to another file. Eventually, I want to read the written file to be loaded into Matlab. Im having trouble writing the regular expression for this file. The format of the file looks like t