Revision 5985
Added by Aaron Marcuse-Kubitza about 12 years ago
bin/import_times | ||
---|---|---|
1 |
#!/bin/sh |
|
1 |
#!/bin/bash
|
|
2 | 2 |
# Filters import log files for their import times |
3 | 3 |
# Usage: self {input...|<input} >filtered |
4 | 4 |
|
... | ... | |
6 | 6 |
|
7 | 7 |
sed () { "$(which sed)" -"$sedEreFlag" "$@";} |
8 | 8 |
|
9 |
sed -n 's/^Took ([^ ]*) sec\/([^ ]*) row\(s\).*$/\2\t\1/p' "$@" |
|
9 |
sed -n 's/^Took ([^ ]*) sec\/([^ ]*) row\(s\).*$/\2'$'\t''\1/p' "$@" |
Also available in: Unified diff
import_times: Use $'' quoting to expand tab, in order to also work on Mac OS X