David FAHED wrote:

> I'm looking for a command or a script that is able to find a string in a text file.
> But I want to display for example 10 lignes before the string, I search, and 10
> lignes after.

        grep -10 ...

You can also use the -B and -A switches, as described in the grep(1)
manpage.

-- 
Glynn Clements <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to