⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getitem.man

📁 Modem通讯程序包
💻 MAN
字号:
.\".\" $Id: getitem.man,v 1.8 1998/02/17 09:51:53 mdejonge Exp $.\".\"   $Source: /home/mdejonge/CVS/projects/modem/getitem/getitem.man,v $.\" $Revision: 1.8 $.\"    Author: Merijn de Jonge.\"     Email: mdejonge@wins.uva.nl.\" .\"  .\" .\" This file is part of the modem communication package..\" Copyright (C) 1996-1998  Merijn de Jonge.\" .\" This program is free software; you can redistribute it and/or modify.\" it under the terms of the GNU General Public License as published by.\" the Free Software Foundation; either version 2 of the License, or.\" (at your option) any later version..\" .\" This program is distributed in the hope that it will be useful,.\" but WITHOUT ANY WARRANTY; without even the implied warranty of.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the.\" GNU General Public License for more details..\" .\" You should have received a copy of the GNU General Public License.\" along with this program; if not, write to the Free Software.\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA..\" .\" .\".TH getitem 1 "Oct 26, 1997".SH NAMEgetitem \- Tool to retrieve items from a configuration file..SH SYNOPSYS.B getitem [-h] [-v]\fIconfig-file\fP \fIgroup\fP \fIkey\fP.SH DESCRIPTION The \fIgetitem\fP program is a tool that retrieves data from configurationfiles. It is used in the modem package to retrieve elements from the personalphone book (see phonebook(5)). Given a \fIgroup\fP name and a \fIkey\fP, thetool prints the value corresponding to the entry '\fIkey\fP = value' in\fIgroup\fP on standard output. When no key can be found, the empty string isprinted on standard output..SH OPTIONSThe following optional command line options are understood by \fIgetitem\fP:.TP 8.B -hThis causes \fIgetitem\fP to print out a verbose message describing itsoptions..TP 8.B -vPrints the version number of \fIgetitem\fP to standard output..SH OPERANDSThe following arguments are required by \fIgetitem\fP:.TP 8.I config-fileThe name of the configuration file that has to be used.In the modem package \fIgetitem\fP is used to access the personalphonebook (~/.phonebook)..TP.I groupThe name of the group in the configuration file in which key has to besearched..TP.I keyThe item that has to be searched..SH EXAMPLESYou can use \fIgetitem\fP to obtain the speed of a configured modem (seemodems.conf(5)):% getitem /etc/modems.conf modem speedOr you can use the tool to retrieve the phone number corresponding tothe phone book entry \fIuniversity\fP:% getitem ~/.phonebook university number.SH EXIT STATUSThe following exit values are returned:.TP 4.B 0Successful completion.TP.B >0An error occurred. The configuration file could not be opened or no entryexists for the given key..SH SEE ALSO.BR ppp "(1), .BR phonebook "(5),.BR modems.conf "(5).SH AUTHORMerijn de Jonge (mdejonge@wins.uva.nl).\".\" EOF getitem/getitem.man.\"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -