I am trying to pull a piece of text from a file to use as input for the next command. The word always starts with "JID_" and then some random numbers/characters after that.
For example :
SelectorSet Selector: InstanceID = JID_001264193601, __cimnamespace = root/dcim
I want to assign a variable $JID to that string of characters. How do I pull it from the line ? sed or grep preferrably, but any method is fine.