diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2006-12-16 10:35:56 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gnu.org> | 2008-01-09 16:12:21 +0100 |
commit | a9f3dc2a2adee3bbe28a3e9fb7bc6ad37554f92d (patch) | |
tree | 5440e289ab80c32a7d624f9e1c01c8b186940cf7 /doc/sed.texi | |
parent | f6aa842534f3435a2150f7bd1968e83dee1872b8 (diff) | |
download | sed-a9f3dc2a2adee3bbe28a3e9fb7bc6ad37554f92d.tar.gz |
document --follow-symlinks
2006-12-16 Paolo Bonzini <bonzini@gnu.org>
* doc/sed-in.texi: Document --follow-symlinks.
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-86
Diffstat (limited to 'doc/sed.texi')
-rw-r--r-- | doc/sed.texi | 44 |
1 files changed, 27 insertions, 17 deletions
diff --git a/doc/sed.texi b/doc/sed.texi index 1487458..d8b43aa 100644 --- a/doc/sed.texi +++ b/doc/sed.texi @@ -216,6 +216,22 @@ These options disable this automatic printing, and @command{sed} only produces output when explicitly told to via the @code{p} command. +@item -e @var{script} +@itemx --expression=@var{script} +@opindex -e +@opindex --expression +@cindex Script, from command line +Add the commands in @var{script} to the set of commands to be +run while processing the input. + +@item -f @var{script-file} +@itemx --file=@var{script-file} +@opindex -f +@opindex --file +@cindex Script, from a file +Add the commands contained in the file @var{script-file} +to the set of commands to be run while processing the input. + @item -i[@var{SUFFIX}] @itemx --in-place[=@var{SUFFIX}] @opindex -i @@ -282,7 +298,7 @@ to a non-empty value. @itemx --binary @opindex -b @opindex --binary -This option is available on any platforms, but is only effective where the +This option is available on every platform, but is only effective where the operating system makes a distinction between text files and binary files. When such a distinction is made---as is the case for MS-DOS, Windows, Cygwin---text files are composed of lines separated by a carriage return @@ -291,6 +307,16 @@ ending CR. When this option is specified, @command{sed} will open input files in binary mode, thus not requesting this special processing and considering lines to end at a line feed. +@item --follow-symlinks +@opindex --follow-symlinks +This option is available only on platforms that support +symbolic links and has an effect only if option @option{-i} +is specified. In this case, if the file that is specified +on the command line is a symbolic link, @command{sed} will +follow the link and edit the ultimate destination of the +link. The default behavior is to break the symbolic link, +so that the link destination will not be modified. + @item -r @itemx --regexp-extended @opindex -r @@ -340,22 +366,6 @@ Buffer both input and output as minimally as practical. the likes of @samp{tail -f}, and you wish to see the transformed output as soon as possible.) -@item -e @var{script} -@itemx --expression=@var{script} -@opindex -e -@opindex --expression -@cindex Script, from command line -Add the commands in @var{script} to the set of commands to be -run while processing the input. - -@item -f @var{script-file} -@itemx --file=@var{script-file} -@opindex -f -@opindex --file -@cindex Script, from a file -Add the commands contained in the file @var{script-file} -to the set of commands to be run while processing the input. - @end table If no @option{-e}, @option{-f}, @option{--expression}, or @option{--file} |