| www.delorie.com/gnu/docs/sed/sed_fot.html | search |
![]() Buy the book! | |
| [Top] | [Contents] | [Index] | [ ? ] |
This applies to commands such as =,
a, c, i, l, p. You can
still write to the standard output by using the w
or W commands together with the `/dev/stdout'
special file
Note that GNU sed
creates the backup file whether
or not any output is actually changed.
This is equivalent to p unless the `-i'
option is being used.
This is equivalent to p unless the `-i'
option is being used.
All
the escapes introduced here are GNU
extensions, with the exception of \n. In basic regular
expression mode, setting POSIXLY_CORRECT disables them.
sed guru Greg
Ubben wrote an implementation of the dc RPN calculator!
It is distributed together with sed.
This requires another script to pad the output of banner; for example
#! /bin/sh
banner -w $1 $2 $3 $4 |
sed -e :a -e '/^.\{0,'$1'\}$/ { s/$/ /; ba; }' |
~/sedscripts/reverseline.sed
|
Some implementations have a limit of 199 commands per script
which is the actual "bug" that prompted the
change in behavior
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |