diff options
author | delphij <delphij@FreeBSD.org> | 2012-12-13 23:32:47 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2012-12-13 23:32:47 +0000 |
commit | 976943f3a93bdb52ea2fb077b56f27c14b99da8c (patch) | |
tree | 7538275738edecd1f058054c8be372f37d487d93 /sbin/sysctl/sysctl.8 | |
parent | 52a49d45767202eda504865adcfda6c27523ef1e (diff) | |
download | FreeBSD-src-976943f3a93bdb52ea2fb077b56f27c14b99da8c.zip FreeBSD-src-976943f3a93bdb52ea2fb077b56f27c14b99da8c.tar.gz |
Teach sysctl(8) about parsing a file (while I'm there also give it
capability of parsing both = and : formats).
Submitted by: hrs (initial version, bugs are mine)
MFC after: 3 months
Diffstat (limited to 'sbin/sysctl/sysctl.8')
-rw-r--r-- | sbin/sysctl/sysctl.8 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sbin/sysctl/sysctl.8 b/sbin/sysctl/sysctl.8 index 514acd1..fe0a75a 100644 --- a/sbin/sysctl/sysctl.8 +++ b/sbin/sysctl/sysctl.8 @@ -28,7 +28,7 @@ .\" From: @(#)sysctl.8 8.1 (Berkeley) 6/6/93 .\" $FreeBSD$ .\" -.Dd January 17, 2011 +.Dd December 13, 2012 .Dt SYSCTL 8 .Os .Sh NAME @@ -37,6 +37,7 @@ .Sh SYNOPSIS .Nm .Op Fl bdehiNnoRTqx +.Op Fl f Ar filename .Ar name Ns Op = Ns Ar value .Ar ... .Nm @@ -80,6 +81,11 @@ This option is ignored if either or .Fl n is specified, or a variable is being set. +.It Fl f Ar filename +Specify a file which contains a pair of name and value in each line. +.Nm +reads and processes the specified file first and then processes the name +and value pairs in the command line argument. .It Fl h Format output for human, rather than machine, readability. .It Fl i |