g -> global r -> regular e -> expression p -> print grep # example # this will match any text with "foo" case insensitive grep -i foo bar.txt