Statistics
| Branch: | Revision:

psnr-tools / peers_of_class.sh @ 2c8d6927

History | View | Annotate | Download (448 Bytes)

1 040c8361 Csaba Kiraly
#!/bin/bash
2 ad2a1304 Csaba Kiraly
 ###########################################
3
 #  Copyright (c) 2009 Csaba Kiraly        #
4
 #                                         #
5
 #  This is free software; see gpl-3.0.txt #
6
 ###########################################
7 040c8361 Csaba Kiraly
8
[[ $# -eq 2 ]] || { echo "Usage: $0 <classID> [<folder>]"; exit 1; }
9
10
classFile=$2/Upload_rate_peer.out
11
peerIDColumn=1
12
peerClassColumn=3
13
14
awk '{if ($'$peerClassColumn'=='$1') print $'$peerIDColumn'}' $classFile