develooper Front page | perl.perl5.porters | Postings from January 2001

Need help!

Thread Next
From:
Tham Huei Hwan
Date:
January 5, 2001 01:24
Subject:
Need help!
Message ID:
3A559317.76100283@apis.dhl.com
Hi all,

I am new to perl scripting. Any one can give some advice on writing a
small perl program on processing the following data file. The data file
contain 4 column. Under the dbnum (1st column), there is a row have the
same "dbnum". Anybody can
show me a way to add-up the chksize on this 2 row ?


dbsnum     name                   chksize       nfree

     1     jkta_root_dbs           512000      344953
     2     jkta_log_dbs           1024000        4043
     3     jkta_tmp_dbs1          1024000     1011167
     4     jkta_tmp_dbs2          1024000     1001103
     5     gop_dbs1                128000       45975
     6     gop_dbs2                179200      126211
     7     gop_dbs3                332800      140117
     8     sam_dbs1                409600       29184
     9     sam_dbs2                921600      175717
    10     sam_dbs3                870400      127687
    11     sam_dbs4               1024000       19650
    11     sam_dbs4                665600      354779
    12     sis_sd_dbs              256000           0
    13     sis_sd_idx              102400        6959
    14     sis_sas_dbs              51200       51147
    15     sis_sas_idx              51200       19803
    16     sis_gen_dbs            1024000           0
    17     sis_gen_idx             512000       97133
    18     sis_gas_dbs             153600      153547

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About