the -t option of querycalc.

Egon Willighagen egonw at subdimension.com
Thu Apr 26 18:19:08 CEST 2001


Op donderdag 26 april 2001 15:10, schreef Joost Bekkers:
> Can someone explain the use of the -t option of querycalc to me,
> I can't get it to work.  I'm trying to make a top 10, with column
> 6 as the item and the total of column 8 as the value for that item.

I confirm your bug report; i also cannot get it to work. From the manpage
i would say it should give the highest value for a certain column. I've 
search for use of "-t" in the report scripts, but did not find any 
occurance...

I think it is a bug and file it as such.

Your job, however, can be done in this way (see report_bytesperday):

cat file_to_process | cut -d' ' -f 6,9 | sort | dlf_sum | head -10

where cut -d' ' uses a space as delimeter...

Does this answer your question?

Egon

PS. more info: man querycalc and man dlf_sum




-- 
To UNSUBSCRIBE, email to questions-request at logreport.org with a subject of 
"unsubscribe". Trouble? Send an email with subject "help" to 
questions-request at logreport.org



More information about the Questions mailing list