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]
- Red Hat Linux -6.2 Performance Kalyan Dakshit
- Commmand to find a string in a text file ... David FAHED
- Re: Commmand to find a string in a text file ... Glynn Clements
- Re: Commmand to find a string in a text file ... Glynn Clements
