Project

General

Profile

« Previous | Next » 

Revision 5985

import_times: Use $'' quoting to expand tab, in order to also work on Mac OS X

View differences:

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