Project

General

Profile

« Previous | Next » 

Revision 1619

count_error_rows: Allow input to be specified as last arg(s) in addition to as stdin

View differences:

bin/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