File: nhfsnums

package info (click to toggle)
nfs-utils 1%3A1.0.10-6%2Betch.1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 4,232 kB
  • ctags: 2,554
  • sloc: ansic: 24,691; sh: 9,398; makefile: 667
file content (22 lines) | stat: -rwxr-xr-x 587 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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