Install Sed by running the following commands:
CPPFLAGS=-Dre_max_failures=re_max_failures2 \
./configure --prefix=$LFS/usr --disable-nls --bindir=$LFS/bin &&
make LDFLAGS=-static &&
make install
The Sed package contains the sed program.
sed is a stream editor. A stream editor is used to perform basic text transformations on an input stream (a file or input from a pipeline).