|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/usr/sbin/ |
Upload File : |
#!/bin/sh
#
# @(#)nhfsnums.sh 1.3 89/07/07 Copyright (c) 1989, Legato Systems, Inc.
#
# See DISCLAIMER file for restrictions
#
#
# Usage: nhfsnums <numsfile> ...
#
# Collect raw numbers from nhfsstone output and print in plot(5) format.
# The nums files should be named "run.xxx" where xxx is a name related
# to the numbers gathered. Each file will produce one line with a label
# that is the file suffix (the part following the dot.)
#
for i in $*; do
RUNNAME=`echo $i | sed -e 's/.*\\.//'`
awk '{ print $5 " " $7 }' $i \
| sort -n\
| sed -e "\$s/\$/ \"$RUNNAME\"/"
done