Hi Team, How to grep values from below out put string.
pattern should include "Fabric Module". grepping Fabric module values only str = ''' 22 0 Fabric Module J8N-C9508-FM ok 24 0 Fabric Module J8N-C9508-FM ok 26 0 Fabric Module J8N-C9508-FM ok 22 0 16-slot Fabric Module J8N-C9516-FM-E ok 24 0 16-slot Fabric Module J8N-C9516-FM-E ok''' output = [22,24,26,22,24] Thanks Iranna M -- https://mail.python.org/mailman/listinfo/python-list