Re: how to grep

2017-08-04 Thread dieter
Iranna Mathapati writes: > How to grep values from below out put string. > > pattern should include "Fabric Module". One possible way would be to use a regular expression -- see the documentation for the "re" module. -- https://mail.python.org/mailman/listinfo/python-list

Re: how to grep

2017-08-04 Thread Steve D'Aprano
On Fri, 4 Aug 2017 10:33 pm, Iranna Mathapati wrote: > Hi Team, > > How to grep values from below out put string. > > pattern should include "Fabric Module". > > grepping Fabric module values only > > str = ''' > 22 0Fabric Module J8N-C9508-FM ok > 24