crooks

combinatorial rooks
git clone https://a3nm.net/git/crooks/
Log | Files | Refs

extract.sh (253B)


      1 #!/bin/bash
      2 
      3 for a in `seq 2 $1`
      4 do
      5   echo -n "$a "
      6   grep DONE tmp/out$a | cut -d ' ' -f3 | tail -1
      7   R=$(grep DONE tmp/out$a | tail -1 | cut -d ' ' -f3)
      8   echo "$a: $R" > tmp/best$a
      9   grep -A "$(($a+1))" DONE tmp/out$a | tail -n $a >> tmp/best$a
     10 done