Sed (streams editor) nie jest tak naprawdę prawdziwym edytorem ani procesorem tekstu. Zamiast tego jest używany do filtrowania tekstu, np. bierze tekst wejściowy i wykonuje na nim jakieś operacje (lub zestaw operacji) i przekazuje na wyjście zmodyfikowany tekst. Sed typowo jest wykorzystywany do wyłuskania części pliku przy użyciu porównania wzorca lub zastępowania wielu wystąpień danego wzorca w pliku.
Konfiguracja i kompilacja przy użyciu skryptu (w załączeniu):
soft@wega:~/sed% ./drf_sed-4.2.1_conf
cc: Sun C 5.10 SunOS_sparc 2009/06/03
usage: cc [ options] files. Use 'cc -flags' for details
MANPATH=/usr/local/share/man:/usr/local/man:/usr/share/man
PATH=/usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin
CFLAGS=-fast
CPPFLAGS=-I/usr/local/include
CXXFLAGS=-fast
LDFLAGS=-L/usr/local/lib -R/usr/local/lib
=============================================
gmake clean [y|n] ?
n
configure [y|n] ?
y
checking for a BSD-compatible install... build-aux/install-sh -c
checking whether build environment is sane... yes
...
config.status: creating po/POTFILES
config.status: creating po/Makefile
=============================================
Kompilacja:
gmake [y|n] ?
y
gmake all-recursive
gmake[1]: Entering directory `/home/soft/sed/sed-4.2.1'
Making all in lib
...
gmake[2]: Leaving directory `/home/soft/sed/sed-4.2.1'
gmake[1]: Leaving directory `/home/soft/sed/sed-4.2.1'
Compilation successful
=============================================
Testowanie:
gmake check [y|n] ?
y
Making check in lib
gmake[1]: Entering directory `/home/soft/sed/sed-4.2.1/lib'
gmake check-recursive
gmake[2]: Entering directory `/home/soft/sed/sed-4.2.1/lib'
...
======================================================
All 65 tests behaved as expected (4 expected failures)
======================================================
gmake[2]: Leaving directory `/home/soft/sed/sed-4.2.1/testsuite'
gmake[1]: Leaving directory `/home/soft/sed/sed-4.2.1/testsuite'
gmake[1]: Entering directory `/home/soft/sed/sed-4.2.1'
gmake[1]: Leaving directory `/home/soft/sed/sed-4.2.1'
gmake install po przełączeniu na roota.
# gsed --version
GNU sed version 4.2.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,
to the extent permitted by law.