a script probably only useful to ds
authorDavid Schleef <ds@schleef.org>
Tue, 13 Mar 2001 09:35:07 +0000 (09:35 +0000)
committerDavid Schleef <ds@schleef.org>
Tue, 13 Mar 2001 09:35:07 +0000 (09:35 +0000)
comedi_calibrate/split_dumps [new file with mode: 0755]

diff --git a/comedi_calibrate/split_dumps b/comedi_calibrate/split_dumps
new file mode 100755 (executable)
index 0000000..e703284
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+file=$1
+
+all=$(grep '^start dump' $file|sed 's/start dump //');
+
+for each in $all
+do
+       grep "^D$each:" $file|sed "s/^D$each: //" >$file.$each
+done
+