I need to search for 1st occurrence of string pattern EPMAT- in a log file and extract the numeric part from it. EPMAT- will be followed by some number. I would like to extract 20 from EPMAT-20 and print it.Ex file:This is a test  test EPMAT-20 ......  ....  EPMAT.33 test  end of test.Thanks for your help.
Find 1st occurance of string pattern and extract a substring from it
sed