commit 7a46436da4826a14ad4be6e47252c9b115705f4f parent 14deebbb6247fb2e7bf548d901e2a6346f63c6a3 Author: Antoine Amarilli <a3nm@a3nm.net> Date: Thu, 6 Aug 2015 22:43:06 +0200 +manydelta Diffstat:
manydelta | | | 16 | ++++++++++++++++ |
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git a/manydelta b/manydelta @@ -0,0 +1,16 @@ +#!/bin/bash + +# usage: manydelta test_program input_file +# runs singledelta -in_place -test=$1 $2 until convergence + +while true +do + OLD=$(wc -l <"$2") + singledelta -in_place -test="$1" "$2" + NEW=$(wc -l <"$2") + if [ $NEW -eq $OLD ] + then + break + fi +done +