wall_clock_time_stats_pred.sh 595 B

123456789101112131415161718192021222324
  1. # DIR=/scratch/mikem/UserSupport/weizhe.li/runs_process/wnorm_448_400_7689398
  2. # SUBDIRS=`ls -1 $DIR`
  3. DIR=/scratch/mikem/UserSupport/weizhe.li/runs_process_cn_V2_False/testing_wnorm_448_400_7694088
  4. PREFIX=test
  5. SUBDIRS=`ls -1 $DIR | grep $PREFIX`
  6. STAT_FILE=timing_pred.txt
  7. rm -f $STAT_FILE
  8. for SD in $SUBDIRS
  9. do
  10. echo "Processing $SD subdirectory..."
  11. echo $SD
  12. PREFIX1=$SD
  13. find "$DIR"/"$SD"/sysout -name "$PREFIX1"* | xargs grep "seconds" >> $STAT_FILE
  14. done
  15. sort -k2 -n $STAT_FILE > "$STAT_FILE"_sorted.txt
  16. awk '{ print $2 }' "$STAT_FILE"_sorted.txt > "$STAT_FILE"_sorted_2ndc.txt