You're viewing a comment by Daniel Goldman and its responses.

August 24, 2014, 02:15

Peter has a nice blog. Here are some ways:

$ cmd | grep bootcmd | grep -o sdboot3 # GNU grep

$ cmd | sed -n "s/.*bootcmd.*sdboot3.*/sdboot3/p"

If you want to eliminate the newline, use tr command.

Daniel Goldman - http://www.sed-book.com/

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

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

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