Y
Hacker News
new
|
ask
|
show
|
jobs
by
piedar
1486 days ago
grep -o $pattern $filename | wc -l
But yours has better error handling!