Comment Comment by asicsp Grep is often better suited for extracting matched portion, especially if you also have PCRE option: grep -oP -m1 'name:\s*"\K[^"]+' parent asicsp 4 years ago