for a shorter sed script
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
for a 1stop sed needs, join seders, the informal sed mailing list.
sed is literate. sed knows 4 R's: read, 'rite, 'rithmetic, recur.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sed informal mailing list
Of half a dozen sed studs known to sedkind, seders has 2 :
Greg Ubben + Carlos J. G. Duarte.
-----
sed web pages (in 4 countries)
http://www.wollery.demon.co.uk seders grab bag (seders official web page
seder Casper
http://www.math.fu-berlin.de/~guckes/sed/ seder, Herr Guckes
http://www.math.fu-berlin.de/~leitner/sed/ seder, Herr von Leitner
http://www.dbnet.ece.ntua.gr/~george/#seders seder, engineer, Dr2b Yiorgos
ftp://olivia.inesc.pt/pub/users/cdua/scripts/sed the great sed stud
ftp://olivia.inesc.pt/pub/users/cdua/scripts/sh seder Carlos J. G. Duarte
----
my favourite DOS/UNIX sed15 (with C source)
(easily compilable for UNIX. has friendly extenstions/relaxations like hex)
ftp://uiarchive.uiuc.edu/pub/systems/pc/simtelnet/msdos/txtutl/sed15.zip
ftp://uiarchive.uiuc.edu/pub/systems/pc/simtelnet/msdos/txtutl/sed15x...
Directory: /pub/systems/pc/simtelnet/msdos/txtutl/
Filename Type Length Date Description
===============================================================================
sed15.zip B 62082 910930 Unix-compatible streaming editor v1.5 TC src
sed15x.zip B 20300 910930 Unix-compatible streaming editor v1.5 EXE/docs
sed15.zip has C source, compilable for UNIX.
Also, check simtel for u-sedit. has nice docs.
----
O'Reilly sed books http://www.ora.com
1- sed and awk 2nd edition by Dale Dougherty + Arnold Robbins
(mostly for awk)
2- mastering regular expressions by Jeffrey E. F. Friedl
(mostly for perl, emacs, awk. but touches on sed)
----
newsgroup alt.comp.editors.batch
though seders news group, alt.comp.editors.batch deals with
batch, AI, data warehousing, OLAP, computer security, filters, linguistics,
awk, perl, unix, computer seminars, CFP, etc (even sed)
started by a seder, PhD2b, engineer, the hawk
Yiorgos Adamopoulos.
most newsfeeds do not carry alt.comp.editors.batch
but everyone can get it via dejanews (and others)
you can even follow up, reply to the poster, etc. dejanews is great.
(then he sed: not by sed alone ... lives man)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: #!/usr/bin/sed -nf
: # Stewart Ravenhall
: /^ *$/!p
: /^ *$/{
: p
: :ubble
: n
: /^ *$/bubble
: p
: }
: Hope this helps.
: Thanks to all the smashing guys and gals at comp.unix.shell who've helped
: me with my sed problems in the past so that I've learnt enough to be able
: to write this sort of thing!
: :-)
: Best wishes,
: Stew.
: --
: Stewart Ravenhall,
: Milton Keynes,
: Buckinghamshire,
: England.
: > I want to replace multiple consecutive empty lines with one empty line,
: > so that there is never more than one empty line between lines containing
: > characters.
--
=-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
al aab, seders moderator sed u soon
it is not zat we do not see the s o l u t i o n
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+