I would like to extract string after x_rundir
from a file full with text.
Trying with
grep -w "x_rundir" xfile.txt
but it extracts whole sentence from the file
xfile.txt:
00:39:11-INFO: x_rundir: /i/am/a/path/
Expected result:
/i/am/a/path