[CentOS] Grep: show me this line and the next N lines?
Kenneth Porter
shiva at sewingwitch.comTue Jun 7 02:26:15 UTC 2011
- Previous message: [CentOS] Problem changing server on a LAN
- Next message: [CentOS] Grep: show me this line and the next N lines?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
--On Tuesday, May 31, 2011 1:08 AM +0300 Dotan Cohen <dotancohen at gmail.com> wrote: > Can grep show the matching lines and the next N lines after a match? If I'm just inspecting a file I use less and the "/" command to search up to the next occurrence of a regular expression. Use the "?" command to search backwards. See the man page for less for lots more options.
- Previous message: [CentOS] Problem changing server on a LAN
- Next message: [CentOS] Grep: show me this line and the next N lines?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list