how to output only matched grep linux code example Example: grep extract only matched string grep -E -o "insert regex here"