Ignore lockmem executable.
[bluesky.git] / TBBT / trace_init / commands
1 #!/bin/bash -x
2
3 # to locate a program
4 GUNZIP=`whereis gunzip | gawk '{print $2}'`
5 echo $GUNZIP
6
7 # to run nfsscan
8 gunzip -c traces/* | ./nfsscan -f -t0 -o result-total/test > result-total/output 2>&1
9 gunzip -c ~traces/anon-lair62-011130-1100.txt.gz | ../nfsscan.pl > output 2>&1
10
11
12
13 # post processing of nfsscan
14 gawk '{if ($1=="F") print $2, $3, $5, $6 }' output  > output-filename
15 gawk '{if ($3!=".") print $0 }' output-filename  > output-filename-known
16
17 echo file#; gawk '{if ($1=="F") print $0}' output-filename-known | wc
18 echo dir#; gawk '{if ($1=="D") print $0}' output-filename-known | wc
19 echo active#; gawk '{if ($2=="A") print $0}' output-filename-known | wc
20 echo dead#; gawk '{if ($2=="D") print $0}' output-filename-known | wc