diff options
author | tobez <tobez@FreeBSD.org> | 2001-10-30 20:15:32 +0000 |
---|---|---|
committer | tobez <tobez@FreeBSD.org> | 2001-10-30 20:15:32 +0000 |
commit | c304204fd489dc1a7b1704829be8e9ca92e07522 (patch) | |
tree | 9de2392aacc5511482ad64266dcd0aa66a66cdf5 /sbin/sysctl/sysctl.8 | |
parent | 35271836773dee35b0622f4e91cfb327eaa775a1 (diff) | |
download | FreeBSD-src-c304204fd489dc1a7b1704829be8e9ca92e07522.zip FreeBSD-src-c304204fd489dc1a7b1704829be8e9ca92e07522.tar.gz |
Implement -e option. It modifies the output produced by sysctl(8) in
such a way that the name and the value of the variable(s) are separated
with `=' instead of the usual `: '. This is useful for producing output
that can be fed back to the sysctl utility (pasted to sysctl.conf, for
example).
Reviewed by: rwatson
Approved by: markm
MFC after: 2 weeks
Diffstat (limited to 'sbin/sysctl/sysctl.8')
-rw-r--r-- | sbin/sysctl/sysctl.8 | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sbin/sysctl/sysctl.8 b/sbin/sysctl/sysctl.8 index bd5f1f2..a58cfd0 100644 --- a/sbin/sysctl/sysctl.8 +++ b/sbin/sysctl/sysctl.8 @@ -40,11 +40,11 @@ .Nd get or set kernel state .Sh SYNOPSIS .Nm -.Op Fl bNnox +.Op Fl beNnox .Ar name Ns Op = Ns Ar value .Ar ... .Nm -.Op Fl bNnox +.Op Fl beNnox .Fl a .Sh DESCRIPTION The @@ -71,6 +71,16 @@ the command line. Force the value of the variable(s) to be output in raw, binary format. No names are printed and no terminating newlines are output. This is mostly useful with a single variable. +.It Fl e +Separate the name and the value of the variable(s) with `='. +This is useful for producing output which can be fed back to the +.Nm +utility. +This option is ignored if either +.Fl N +or +.Fl n +is specified, or a variable is being set. .It Fl N Show only variable names, not their values. This is particularly useful with shells that offer programmable |