[H-GEN] Re: National Installfest.
Nickolas Kwiatkowski
nickolas at fit.qut.edu.au
Wed Jul 1 02:41:37 EDT 1998
On Wed, 1 Jul 1998, Luke Grant wrote:
>
> Hi ppl,
> One of the guys here at work has just asked me a question which i
> am quite sure is dead simple but i have no idea how to do. How can i ask
> for the line number of a grep from a file.
>
>
simple,
grep -n "pattern" *files*
the -n option includes the line number with the first line being 1
Nik
Nickolas Kwiatkowski ph 61 7 3864 1290
Queensland University of Technology nickolas at fit.qut.edu.au
Brisbane, Australia http://www.fit.qut.edu.au/~nickolas/
More information about the General
mailing list