root/bin/import_times @ 5631
1 | 4675 | aaronmk | #!/bin/sh
|
---|---|---|---|
2 | # Filters import log files for their import times
|
||
3 | # Usage: self {input...|<input} >filtered
|
||
4 | |||
5 | sedEreFlag="$(test "$(uname)" = Darwin && echo E || echo r)" |
||
6 | |||
7 | sed () { "$(which sed)" -"$sedEreFlag" "$@";} |
||
8 | |||
9 | sed -n 's/^Took ([^ ]*) sec\/([^ ]*) row\(s\).*$/\2\t\1/p' "$@" |