]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/external/dump_splitter.sh
Change autoconf required version for libmar's configure.ac
[working/Evergreen.git] / Open-ILS / xul / staff_client / external / dump_splitter.sh
1 #!/bin/bash
2 # This can take a file containing output produced by the replacement dump function in custom.js.example
3 # and break it into multiple files, one for each numeric dump prefix.  Not perfect, since it'll truncate
4 # messages that aren't on one contiguous line.
5 for x in `grep '>>>>>>>>>>>>>' $* | perl -ne 'if ( />>>> .. (\d+) =/ ) { print "$1\n"; }'` ; do
6 grep $x $* > $x
7 done
8 grep '>>>>>>>>>>>>>' $*