You're replying to a comment by pecival.

pecival Permalink
July 23, 2012, 19:03

you said
awk '{sub(/pattern/,"foobar")}1'
is the equivalent to
sed 's/pattern/foobar/'

..not exactly..AFAIK the sed part should have /g to apply the replace to all matches (not just the first one)..It's just a detail, but let's be precise ;)

(I hope I'm not saying nonsense)

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

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

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