Sven Guckes guckes-sed@math.fu-berlin.de
|
Latest change: Mon Aug 12 18:19:20 MEST 2002
|
SED - the Stream EDitor - Overview
Welcome to SED - the Stream EDitor! :-)
On this page:
Other pages at this site:
SED - Version Info
Status |
Version |
Date |
Maintainer |
user release |
GNU ssed 3.58 |
2002-05-27 |
Paolo Bonzini bonzini(at)gnu.org |
http://queen.rett.polimi.it/~paolob/seders/ssed/
|
CHANGED command 'l': customizable output width
NEW command 'L': adds text formatting like "par" utility
NEW option "-s":
In-place file editing now treats files as separate streams rather than as a
single large stream, which is a lot more intuitive; and there's a new `-s'
option to turn on this behavior separate from in-place editing.
|
NEW Links
Some new pages I found on the Web - check them out!
Should these links be added or deleted? Let me know!
http://www.softpanorama.org/Tools/sed.shtml
"Largely outdated, but still useful for processing very large files.
For smaller files (say up to 1M) perl is a better tool."
Say what? ;-)
http://curt.rice.edu//sed.html
Introduction to Unix's SED editor
by F. Curtis Michel fcm@curt.rice.edu
Be prepared to download quite some
picture when looking at his homepage. ;-)
http://packetstorm.securify.com/programming-tutorials/sed/
A collection of SED scripts, apparently.
SED Mailing List - SED-USERS
There are two mailing lista about SED: SED-BR and SED-USERS.
SED-BR if for discussion in Brazilian (read: Portugese),
while SED-USERS is discussion in English.
Here are the homepages for these mailing lists
which are both hosted by YahooGroups:
SED-BR Mailing List HomePage:
http://www.yahoogroups.com/group/sed-br
Maintainer: Aurelio Marinho Jargas (aurelio@verde666.org)
SED-USERS Mailing List HomePage:
http://www.yahoogroups.com/group/sed-users
Maintainer: Sven Guckes (guckes-sed@math.fu-berlin.de)
List owner:
sed-users-owner@yahoogroups.com
URL to this page:
http://groups.yahoo.com/group/sed-users
For more info please see the
sed mailing list page.
SED on Usenet - comp.editors
The Usenet newsgroup for SED is comp.editors.
SED Links - Other Pages About SED
- *The* SED FAQ [980508,990826,001124]
-
-
http://www.faqs.org/faqs/editor-faq/sed !
- to check:
010207 [dead] http://www.cornerstonemag.com/cornerstone/sed/sedfaq.html
010207 [dead] http://www.cornerstonemag.com/sed/sedfaq.html
010207 [000718] http://www.dbnet.ece.ntua.gr/~george/sed/sedfaq.html
- sed . . . the stream editor [001124,010207]
-
http://www.cornerstonemag.com/sed/
- A very informational site by the maintainer of the SED FAQ.
- Author: Eric Pement pemente@northpark.edu
- 010207: Seems to have moved - or even killed! :-/
DEAD Pages:
010207 http://www.cornerstonemag.com/sed/sed1line.txt "SED One-Liners"
010207 http://info.cern.ch/hypertext/WWW/Tools/bin/txt2html.sed
010207 http://mathssun5.lancs.ac.uk:2080/~maa036/GNU/GNUWeb/sed.html
010207 http://melmac.corp.harris.com/cgi-bin/man-pages?sed+1B
SED - Manuals
- man sed
-
http://www.opengroup.org/onlinepubs/007908799/xcu/sed.html
-
"The Single UNIX ® Specification, Version 2 --
Copyright © 1997 The Open Group"
SED - Other solutions
Here are some examples to problems where SED is not the right tool.
There are other tools about which are designed for a purpose
and you should use them, too!
Here are some examples to problems where SED is not the right tool.
There are other tools about which are designed for a purpose
and you should use them, too!
Deleting newlines from a file
Use tr:
tr -d \\012 < bar
Weeding mails with mawk
See Fefe's page about mawk:
http://www.math.fu-berlin.de/~leitner/mawk/
Links to other SED stuff
SED Documentation
- Batch and Third-Party Programs - SED [001221,001230,010207]
- SED scripts - in colorized text.
-
http://users.cybercity.dk/~bse26236/batutil/help/INDEX.HTM
-
http://users.cybercity.dk/~bse26236/batutil/help/SED.HTM#sed
- Author: Benny Pedersen b.pedersen@get2net.dk
- The SEDer's Grab Bag [980611,980720,990831,001127]
-
http://spazioweb.inwind.it/seders/
- http://seders.icheme.org/ [obsolete]
- "scripts, executables, HOWTOs, tips and all kinds of stuff"
- Quite a few scripts - and some tutorials, too!
- Also home of "Super SED" (ssed):
-
http://pcsiwa.rett.polimi.it/~paolob/seders/ssed/
- Source archive and Windows binary available.
- Maintainer: Paolo Bonzini bonzini@gnu.org
- Custom SED [980527,010207]
-
http://www.ptug.org/sed/custom_sed.html
-
A proposal for a "Custom SED" - a new kind of SED that shall
"always [be] capable of running existing sed scripts portably and efficiently.
The changes should be portable to all contemporary Unixes and if
the underlying GNU code permits, to the DOS/Windows environments."
- Hosted by the "The Profitool User Group".
- Fefe's tutorial on SED [...,010207]
-
http://www.math.fu-berlin.de/~leitner/sed/tutorial.html
-
If you have never used sed and if you don't want to buy a
book about it then you should read this short tutorial.
- Author: Felix von Leitner leitner@math.fu-berlin.de
Misc
- Dictionaries
-
Dictionaries are useful for spell checking and other things.
Here are some sites:
-
ftp://ftp.funet.fi/pub/doc/dictionaries/DEC-collection
-
ftp://ftp.funet.fi/pub/doc/dictionaries
-
ftp://ftp.fu-berlin.de//pub/unix/security/dictionaries/
- FrameFree in Sed! [010207]
-
http://reality.sgi.com/grafica/framefree/sed.html
- Modifying the Netscape binary with GNU sed to become "frame free".
- Introduction to sed [010207]
-
http://www.is.noda.sut.ac.jp/isws/language/sed.html
-
Can't read it - it's in Japanese. Is this any good?
SED - Literature
Title: Sed & Awk (Nutshell Handbook)
Authors: Dougherty, Dale / Robbins, Arnold
Publisher: Oreilly & Associates
Edition: 2nd
ISBN: 1-56592-225-5
Published: March 1997
Binding: Paper
Pages: 407
http://www.ora.com/catalog/sed2/
http://www.briansbooks.com/catalog/books/1565922255
Title: Sed & Awk Pocket Reference
Authors: Robbins, Arnold
Publisher: Oreilly & Associates
ISBN: 1-56592-729-X
Published: January 2000
Binding: Paper
http://www.ora.com/catalog/sedawkrepr/
http://www.briansbooks.com/catalog/books/156592729X
Title: Unix Awk and Sed Programmer's Interactive Workbook
Authors: Patsis, Peter
Publisher: Prentice Hall Computer Books
Edition: Workbook
ISBN: 0130826758
Published: December 1998
Binding: Paper
http://www.briansbooks.com/catalog/books/0130826758
OUT OF PRINT!
"sed&awk" by Dale Dougherty [1st Edition November 1990]
http://www.ora.com/catalog/sed/index.html
SED - Download
- GNU sed 3.02 [010207]
-
ftp://prep.ai.mit.edu/pub/gnu/sed/
-
http://src.doc.ic.ac.uk/gnu/sed/
-
http://src.doc.ic.ac.uk/gnu/sed/sed-3.02.tar.gz
- GNU sed for HPUX [010207]
-
http://hpux.connect.org.uk/hppd/hpux/Gnu/sed-3.02/
- GNU sed of 1992-12-15 [010207]
-
http://www.winsite.com/info/pc/win3/programr/gnused.zip/
-
http://www.winsite.com/info/pc/win3/programr/gnused.zip/downl.html
- Stone old sed for Windows?
- u-sedit2.zip (95K, 1990-06-17) [010207]
-
ftp://garbo.uwasa.fi/pc/editor/u-sedit2.zip
-
http://wuarchive.wustl.edu/systems/ibmpc/garbo.uwasa.fi/editor/u-sedit2.zip
-
What does this contain?
SED Users' Pages
- Bitterberg, Tilmann tilmann@bitterberg.de [010304]
-
http://www.bitterberg.de/tilmann/sed-en.html (English)
-
http://www.bitterberg.de/tilmann/sed-de.html (German)
-
Scripts: Delete ads of maillists, convert Mail to HTML,
convert Pine addresses to vim aliases,
CallID to VBox, Index of Links in HTML page.
- Chang, Yao-Jen changyj@rtfiber.com.tw [010207]
-
http://www.rtfiber.com.tw/~changyj/sed/
- Topics:
Get/work/replace qualified lines, work on a string,
SED's commands, and Resources.
(Colorful link buttons - a GIMP fan at work. ;-)
- Jargas, Aurélio Marinho aurelio@verde666.org
[010207,020307]
-
http://verde666.org/sed/
-
Topics: txt2sgml.sed, justify.sed, sed-3.02.80 (tar,rpm),
Real Audio SED speechs, sed-HOWTO. all in Portuguese.
- Guckes, Sven
-
http://www.math.fu-berlin.de/~guckes/sed/
- This page. :-)
TODO
- Describe how to edit replies to the maillist (remove ads from egroups etc)
- Describe how to get rid of yahoogroups signatures using procmail+sed
If you think you can help with this then
please send me an email!
020409:
Problem I encountered when using SED:
Which version does my SED have?
neither "sed --version" nor "sed --help" works - damn!
"strings `which sed`" does not yield anything -
except some error message strings
Does my sed understand other pattern delimiters apart from '/'?
yes! :-) example: sed -e 's#/#-#g'
Does my sed understand "\t" to denote a TAB?
No. this means I have to use literal TABs in
my scripts. I don't like this at all. :-(
/bin/sed on Solaris - error messages:
sed: command garbled: %s s/foo/bar (no ending '/')
Too much text: %s
Label too long: %s
No addresses allowed: %s
Only one address allowed: %s
Suffix too large - 512 max: %s
SUNW_OST_OSCMD
Cannot malloc space
gne:f:
Cannot open pattern-file: %s
Too many {'s
First RE may not be null
Unrecognized command: %s
Too many }'s
Duplicate labels: %s
Too many labels: %s
Too many labels: %s
First RE may not be null
Too many files in w commands
cannot open %s
Too many files in w commands
Cannot create %s
Too many line numbers
Undefined label: %s
Cannot malloc space
Can't open %s
Too many appends after line %lld
%lld
%Too many reads after line%lld
%sed: Memory allocation failed.
%l
Does anyone have examples which trigger these error messages?
let me know!
URL: http://www.math.fu-berlin.de/~guckes/sed/
Created: Sun Aug 18 18:18:18 CET 1996
Send feedback on this page to
Sven Guckes
guckes-sed@math.fu-berlin.de