Hi everybody, i know this question is common on the forum and i've searched for my answer but haven't quite found it.
I'm trying to extract some values from a number of log files which look like this:
Peak Power Consumption: 0.20777 Watts
Observed Average Power: 0.1414794247 Watts
The other log files are similar where the value i want to extract is behind a word and a colon (like here 'Peak Power Consumption:')
I want to extract the values behind the colons using grep (or something else, whatever is easiest) and i want to use the text (or a piece of the text) before the colon and the colon as pattern so i can do the same trick to the other log files i have to process.