You're viewing a comment by jklowden and its responses.

jklowden Permalink
April 23, 2010, 15:21

wiki() { host -t txt "$"; }

You need to quote the servername if the argument can contain whitespace. Cf. "wiki 'mad men' ".

Comment Responses

April 23, 2010, 23:26

This is better -- replace all whitespace with _

wiki() { dig +short txt $(sed 's/ /_/g'<<<$*); }

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

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

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