You're viewing a comment by Peter Krumins and its responses.

February 24, 2013, 18:44

Hi Stuart! Here's how:

perl -nle "print if !/water/ || /plants/"

This basically says - print the line if it doesn't contain water. But if it contains water, print it only if it contains plants.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "quake3_303": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.