On Sun, 10 Aug 1997 07:38:23 +0900,
Mitsuru Furukawa <furu(_at_)009(_dot_)com> wrote:
BTW, could you teach me what this sed script is supposed to do?
| sed -e 's+^- -+-+' \
I browsed sed man page but could not find any clue.
It will translate "- -" at beginning of line to "-".
era> :0fbw
era> | perl -pe 'last if /^_* \xca\xd6\xbf\xae _*$/'
I think I go with
| perl -ne 'print unless /^_* \xca\xd6\xbf\xae _*$/..eof'
The "last" is more efficient because it will bail out immediately
instead of continue to read lines up until eof.
/* era */
--
Defin-i-t-e-ly. Sep-a-r-a-te. Gram-m-a-r. <http://www.iki.fi/~era/>
* Enjoy receiving spam? Register at <http://www.iki.fi/~era/spam.html>