You're replying to a comment by seby.

seby Permalink
June 01, 2012, 08:17

For Line 52
take a case like below
cat try.tst

cat,bat
cat,dad
set,bet
let,get
try,cat
met,set

sed -n '/cat/{g;1!p;};h' gives a blank line and 'let,get'
sed -n '/cat/{g;1!p;};h' try.tst

let,get

but
sed -n '/cat/{x;p;x};h' try.tst

cat,bat
let,get
thus the one liner 52 does not do its promised activity

Reply To This Comment

(why do I need your e-mail?)

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

Type the first letter of your name: (just to make sure you're a human)

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