From bd93993136af737dde130f8973ccf9fab39445a8 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Mon, 23 May 2011 15:51:32 -0400 Subject: [PATCH] debugging aid. split dump output produced by replacement dump function in custom.js.example Signed-off-by: Jason Etheridge --- Open-ILS/xul/staff_client/external/dump_splitter.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 Open-ILS/xul/staff_client/external/dump_splitter.sh diff --git a/Open-ILS/xul/staff_client/external/dump_splitter.sh b/Open-ILS/xul/staff_client/external/dump_splitter.sh new file mode 100755 index 0000000000..5f8eb273e4 --- /dev/null +++ b/Open-ILS/xul/staff_client/external/dump_splitter.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# This can take a file containing output produced by the replacement dump function in custom.js.example +# and break it into multiple files, one for each numeric dump prefix. Not perfect, since it'll truncate +# messages that aren't on one contiguous line. +for x in `grep '>>>>>>>>>>>>>' $* | perl -ne 'if ( />>>> .. (\d+) =/ ) { print "$1\n"; }'` ; do +grep $x $* > $x +done +grep '>>>>>>>>>>>>>' $* -- 2.11.0