Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../server/etc/./scripts/wwwstat/newstats1.awk
Real path: /www/server/etc/scripts/wwwstat/newstats1.awk
Zurück
#!/usr/bin/gawk -f BEGIN { sum = 0 } /^NNRP readership statistics$/,/^TOTALS/ { if ( $1 ~ /^TOTALS/ ) { reading += $3; } } /^NNRP readership statistics:$/,/^TOTAL:/ { if ( $1 ~ /^TOTAL:/ ) { reading += $4; } } /^Articles sent by nntplink$/,/^TOTALS/ { if ( $1 ~ /^TOTALS/ ) { sending += $3; } } /^Articles sent by innfeed$/,/^TOTALS/ { if ( $1 ~ /^TOTALS/ ) { sending += $3; } } /^Outgoing Feeds \(innfeed\) by Articles:$/,/^TOTAL:/ { if ( $1 ~ /^TOTAL:/ ) { sending += $4; } } /^Outgoing Feeds \(innfeed\):$/,/^TOTAL:/ { if ( $1 ~ /^TOTAL:/ ) { sending += $4; } } /^Articles received by server$/,/^TOTALS/ { if ( $1 ~ /^TOTALS/ ) { reseived += $3; } } /^Incoming articles:$/,/^TOTAL:/ { if ( $1 ~ /^TOTAL:/ ) { reseived += $3; } } END { printf("%-9s %14d %14d %14d \n", MONTH, reseived, sending, reading) }