Revision 1619
Added by Aaron Marcuse-Kubitza over 12 years ago
count_error_rows | ||
---|---|---|
1 | 1 |
#!/bin/sh |
2 | 2 |
# Counts distinct rows with errors in `map` error messages |
3 |
# Usage: self <input
|
|
3 |
# Usage: self {input...|<input}
|
|
4 | 4 |
|
5 |
grep --extended-regexp "row #: .* [0-9]+"|uniq|wc -l |
|
5 |
grep --extended-regexp "row #: .* [0-9]+" "$@"|uniq|wc -l |
Also available in: Unified diff
count_error_rows: Allow input to be specified as last arg(s) in addition to as stdin