grep get only string that mmatch code example Example: grep extract only matched string grep -E -o "insert regex here"