summaryrefslogtreecommitdiffstats
path: root/scripts/extract.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/extract.sh')
-rwxr-xr-xscripts/extract.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/extract.sh b/scripts/extract.sh
new file mode 100755
index 0000000..3e5be57
--- /dev/null
+++ b/scripts/extract.sh
@@ -0,0 +1,12 @@
+#! /bin/bash
+
+[ -n "$1" ] || exit
+frame=$1
+
+list=$(./list.sh $1 | sort -n -k 3)
+echo -n > "frame$frame.raw"
+IFS=$'\n'
+for name in $list; do
+# echo "$name"
+ cat "$name" >> "frame$frame.raw"
+done