This grep command can also be used to list all the lines that do not contain a certain string of characters. Using the same example, the following command displays on the screen the names and addresses of all those who don’t have a Pittsburgh address: