mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

manydelta (263B)


      1 #!/bin/bash
      2 
      3 # usage: manydelta test_program input_file
      4 # runs singledelta -in_place -test=$1 $2 until convergence
      5 
      6 while true
      7 do
      8   OLD=$(wc -l <"$2")
      9   singledelta -in_place -test="$1" "$2"
     10   NEW=$(wc -l <"$2")
     11   if [ $NEW -eq $OLD ]
     12   then
     13     break
     14   fi
     15 done
     16