Michael Lazin via plug on 10 Feb 2021 14:53:56 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Scripting question


Thanks!   That makes sense.  I tested it out and it worked great.  

On Wed, Feb 10, 2021, 5:48 PM Carl Johnson <cjohnson19791979@gmail.com> wrote:
Add the "-An" argument. Where the "n" is the number of lines that you want to see after the match. 




On Wed, Feb 10, 2021, 5:45 PM Michael Lazin via plug <plug@lists.phillylinux.org> wrote:
I like to think I am good at bash scripting but I am a little bit stumped.  I am used to using commands like grep and egrep, but I want to match a pattern in text and then output not just the line that has the pattern but also a few subsequent lines.  Can someone please give me a suggestion?  Thanks again for your help 

Michael Lazin 
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug