www.delorie.com/gnu/docs/sed/sed_fot.html   search  
 
Buy the book!


sed, a stream editor

[Top] [Contents] [Index] [ ? ]

Footnotes

(1)

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

(2)

Note that GNU sed creates the backup file whether or not any output is actually changed.

(3)

This is equivalent to p unless the `-i' option is being used.

(4)

This is equivalent to p unless the `-i' option is being used.

(5)

All the escapes introduced here are GNU extensions, with the exception of \n. In basic regular expression mode, setting POSIXLY_CORRECT disables them.

(6)

sed guru Greg Ubben wrote an implementation of the dc RPN calculator! It is distributed together with sed.

(7)

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

(8)

Some implementations have a limit of 199 commands per script

(9)

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