Newsgroups: comp.lang.awk
From: Roberto Zuelli <roberto...@gmail.com>
Date: Tue, 16 Oct 2012 09:46:00 -0700 (PDT)
Subject: Re: Sum a numbers of a row
On Oct 16, 5:20 pm, Janis Papanagnou <janis_papanag...@hotmail.com>
wrote: > On 16.10.2012 18:10, Roberto Zuelli wrote:
Yes I've tried the command you suggested me but it works in a
> > On Oct 16, 4:16 pm, Janis Papanagnou <janis_papanag...@hotmail.com>
> >>> On Oct 16, 1:53 pm, Roberto Zuelli <roberto...@gmail.com> wrote:
> >>>>> On 15-10-2012 17:30, Roberto Zuelli wrote:
> >>>>>> I use awk in another language (GAMS)
> >>>>>http://www.gams.com?
> >>>> Yes Luuk, I use that GAMS...
> >>>> Thanks everybody for everything.
> >>>> Roberto
> >>> Sorry, but I have another problem...
> >>> I'd like to print all the buses that appear in the 2 columns (from and
> >> I don't see where you've got that BUS5 from.
> >> Here's an awk command to play with...
> >> awk 'NR>1{a[$2];a[$3]}END{for(b in a)print b}'
> >> Janis
> > I mean, it will not print, for example, BUS6, isn't it?
> Certainly it does, and it will also print BUS7, as it is in your newly
particular way: it prints more than 1 time the same bus... > Sorry, I don't understand what you are trying to say here. If you have
I've a list of buses in two different columns, my goal is to print 1
> problems describing it with words, please provide sample data to make > your intention clear. And if I say sample data, I mean sample data that > will be appropriate to show what you want. time all the possible buses present in the 2 columns NB certain buses compare just in the first column, certain other in the second column and certain other in both the columns). R.
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||