Find a string and extract letter upfront to found string till another specifed string
Referring to the below line, I want to find the string 'Task' and print the letters upfront till next immediate (,) comma. in this case '192'
60132>, Exclusive Execution, 192 Task(s), Requested Resour
I have tried the below given way but it doesn't suits me as sometimes 'Task' string randomly changes its position in the line.
| awk -F ',' '{ print $2}' | grep -o '[0-9]\+'
Aucun commentaire:
Enregistrer un commentaire