]> git.decadent.org.uk Git - nfs-utils.git/blob - utils/nhfsstone/nhfsnums
Initial revision
[nfs-utils.git] / utils / nhfsstone / nhfsnums
1 #!/bin/sh
2 #
3 # @(#)nhfsnums.sh 1.3 89/07/07 Copyright (c) 1989, Legato Systems, Inc.
4 #
5 # See DISCLAIMER file for restrictions
6 #
7
8 #
9 # Usage: nhfsnums <numsfile> ...
10 #
11 # Collect raw numbers from nhfsstone output and print in plot(5) format.
12 # The nums files should be named "run.xxx" where xxx is a name related
13 # to the numbers gathered. Each file will produce one line with a label
14 # that is the file suffix (the part following the dot.)
15 #
16
17 for i in $*; do
18         RUNNAME=`echo $i | sed -e 's/.*\\.//'`
19         awk '{ print $5 "       " $7 }' $i \
20             | sort -n\
21             | sed -e "\$s/\$/   \"$RUNNAME\"/"
22 done