I want to write a sed or awk function that eliminates everything before "ThreadCount" without taking into account what is actually in front of ThreadCount. Meaning there may be text in front of "ThreadCount" other than what is currently in front of it now. Basically I am looking for a delete everything NOT EQUAL to <STRING> and I cant seem to find anything like that in any sed documentation.
.* - match any (.) character repeated 0 or more times (*) - sed's regex-s are 'greedy' - therefore it 'grabs' as many characters as possible.
followed by a 'capture' '\(ThreadCount.\) - capture of 'ThreadCount' followed by any char (.) repeated 0 or more times () - in effect captures everything till the end of the line.