Statistics
| Branch: | Revision:

psnr-tools / peers_of_class.sh @ 2c8d6927

History | View | Annotate | Download (448 Bytes)

1
#!/bin/bash
2
 ###########################################
3
 #  Copyright (c) 2009 Csaba Kiraly        #
4
 #                                         #
5
 #  This is free software; see gpl-3.0.txt #
6
 ###########################################
7

    
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