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

October 29, 2011, 05:34

Really easy, here is how:

sed -n '/WORD.*WORD/p'

The regular expression /WORD.*WORD/ matches two WORDs one after another on the current line. The p command prints such lines, and the -n command line option disables the printing of all other lines.

Comment Responses

Techswatch Permalink
August 29, 2015, 09:00

had same question.. thanks for asking :P

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

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

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