From: Jason Etheridge Date: Mon, 23 May 2011 19:51:32 +0000 (-0400) Subject: debugging aid. split dump output produced by replacement dump function in custom... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bd93993136af737dde130f8973ccf9fab39445a8;p=evergreen%2Ftadl.git debugging aid. split dump output produced by replacement dump function in custom.js.example Signed-off-by: Jason Etheridge --- 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 '>>>>>>>>>>>>>' $*