Re: Reading File & grep according item 5 and sorting

2004-03-10 Thread Bjorn Van Blanckenberg
On 7-mrt-04, at 00:00, R. Joseph Newton wrote: Bjorn Van Blanckenberg wrote: On 3-mrt-04, at 09:56, R. Joseph Newton wrote: I understand how the code works It reads the file end split every line according to the tabs and then sorts everything. For returning the info it looks at colomn 5 (1-base

Re: Reading File & grep according item 5 and sorting

2004-03-06 Thread R. Joseph Newton
Bjorn Van Blanckenberg wrote: > On 3-mrt-04, at 09:56, R. Joseph Newton wrote: > > > I understand how the code works > > It reads the file end split every line according to the tabs and then > sorts everything. > For returning the info it looks at colomn 5 (1-based indexing) and if > colomn 5 of t

Re: Reading File & grep according item 5 and sorting

2004-03-04 Thread Bjorn Van Blanckenberg
On 3-mrt-04, at 09:56, R. Joseph Newton wrote: Bjorn Van Blanckenberg wrote: #!/usr/bin/perl use strict; use Getopt::Long; GetOptions(\my %opt, 'filepath=s'); my $filepath = (%opt->{'filepath'}); my @fields = (); my @sorted = (); my $lastbit = 1; my @bits = (); open(INFILE,$filepath); chomp(

Re: Reading File & grep according item 5 and sorting

2004-03-03 Thread R. Joseph Newton
Bjorn Van Blanckenberg wrote: > > #!/usr/bin/perl > > use strict; > use Getopt::Long; > > GetOptions(\my %opt, 'filepath=s'); > > my $filepath = (%opt->{'filepath'}); > > my @fields = (); > my @sorted = (); > my $lastbit = 1; > my @bits = (); > > open(INFILE,$filepath); > > chomp(@fields = ); > >

Re: Reading File & grep according item 5 and sorting

2004-03-02 Thread John W. Krahn
Bjorn Van Blanckenberg wrote: > > On 28-feb-04, at 20:32, R. Joseph Newton wrote: > > > Bjorn Van Blanckenberg wrote: > > > >> let say that the file contains these items (every item is seperated > >> with a tab) > >> > >> one title3 state3 name3 pre number3 > >> dip title6 state6 na

Re: Reading File & grep according item 5 and sorting

2004-03-02 Thread Bjorn Van Blanckenberg
On 28-feb-04, at 20:32, R. Joseph Newton wrote: Bjorn Van Blanckenberg wrote: let say that the file contains these items (every item is seperated with a tab) ... one title3 state3 name3 pre number3 dip title6 state6 name6 pre2 number6 So what changes have you made in the code t

Re: Reading File & grep according item 5 and sorting

2004-02-28 Thread R. Joseph Newton
Bjorn Van Blanckenberg wrote: > let say that the file contains these items (every item is seperated > with a tab) > ... > > one title3 state3 name3 pre number3 > dip title6 state6 name6 pre2 number6 > So what changes have you made in the code to reflect this diffeence in speci

Reading File & grep according item 5 and sorting

2004-02-25 Thread Bjorn Van Blanckenberg
let say that the file contains these items (every item is seperated with a tab) one title state name testing number two title2 state2 name2 final number2 one title3 state3 name3 pre number3 four title4 state4 name4 tesing2 number4 six title5 state5 name5 t