# get pattern grep "pattern" # invert grep (i.e. only show no matches) grep -v "pattern" # search for different words grep -e 'cat|dog|bird'
# Patterns # Get all characters until first dash and add dash to it /(^[^-]+)-/