3 ms·sed '$G;1h;1!H;$!d'by tbe 14y agosed '$G;1h;1!H;$!d'ralph 14y agoNice try, but efficiency aside, it breaks. $ sed '$G;1h;1!H;$!d' <<<foo | hd 00000000 66 6f 6f 0a 0a |foo..| 00000005 $