From abfc5c99305820437766b736735a52ce8cfcb953 Mon Sep 17 00:00:00 2001 From: Olivier Teytaud <oteytaud@fb.com> Date: Tue, 5 Oct 2021 22:39:58 +0200 Subject: [PATCH] parallel_and_better_view --- viewer.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/viewer.sh b/viewer.sh index 2d449f3..fb8858d 100755 --- a/viewer.sh +++ b/viewer.sh @@ -2,6 +2,10 @@ STAMP=`ls -ctr run_* | tail -n 1 | sed 's/run_//g'` echo STAMP=$STAMP for pb in `cat listpb.txt` do +for k in 1 2 +do +STAMP2=`ls -ctr results/*-${pb}-*/*.csv | tail -n $k | head -n 1 | sed 's/.*STAMP/STAMP/g' | sed 's/-[\.0-9]*.log.csv//g'` #ls results/*-${pb}-*${STAMP}*/*.csv -echo $pb ":" `tail -n 1 results/*-${pb}-*${STAMP}*/*.csv | awk -F ',' '{print $4}' | grep '[0-9]'` vs `grep $pb table3.txt | awk '{print $2}'` +echo $pb ":" `tail -n 1 results/*-${pb}-*${STAMP2}*/*.csv | awk -F ',' '{print $4}' | grep '[0-9]'` vs expected `grep $pb table3.txt | awk '{print $2}'` +done done -- GitLab