PurdueHassen wrote: > Is it possible to have grep output the line number without > returning any data in the line containing a match?
function ngrep { grep -n "$@" | sed 's/:.*//'; }
When ngrep should be able to search multiple files, the function
gets a little more complicated.
Benno
