grep Getting started with grep Prints only the matching part of the lines


Example

echo "Prints only the matching part of the lines" | grep -o "matching"
# prints matching