FAQSection: User Commands (1)Updated: 1999 February 15 Index Return to Software Archives NAMEfaq - frequently asked questionsSYNOPSISfaq [-h?dlLcaixqv] [ -f[file] | --faq[=file] | -F[file] | --Faq[=file] | --FAQ=[=file] ] [--describe] [--list] [--list-all] [--count] [--all] [--ignore-case] [--extended-regex] [--quiet] [--version] [ faq_number | key-words | ? ]DESCRIPTIONFaq Searches for answers to Frequently Asked Questions Faq reads a loosely formatted faq file and extracts a set of questions. An faq file contains comments (as indicated by # or ; at the start of a line), questions (as shown by Q: at the start of a line), and answers which follow the question section. Any text preceeding the first question is taken to be a description of the FAQ file itself. If a number is specified, that particular question and answer pair are shown. If one or more keywords are listed, the set of questions is scanned for matching text. Questions that meet the criteria are shown. This is used to limit the number of questions to select from. The following options may be used with faq.
INTRODUCTIONNobody likes to read documentation. As such, new users constantly bombbard administrators, news groups, and techincal support with the same old questions. In order to answer these questions once in for all, a knowledge base is built called a FAQ, which stands for Frequently Asked Questions. Supposedly, the unfamiliar users will turn to the FAQ, providing they know where it is, and read it. Only then will a question be asked. Unforuntately FAQ files can get rather large. Thus, users don't read them. faq attempts to solve the problem by doing the dirty work of casual browsing for a subset applicable questions. The user may then select which question they'd like an answer to and only that answer is shown. The faq application also saves the faq author mundane work by keeping track of the question numbers dynamically. Questions can be inserted anywhere and faq will adjust the numbering scheme. This save a lot of editing and organization. Additionally, faq can be set up to look in a common area for faq files if none are found in the local directory. As such, it can compliment the system help facilities. faq is not meant to be a substitute for well written documentation, man or info page, or an elaborate hypertext system. It is a quick and dirty command line interface. EXAMPLE FAQ
This is the description to the faq. It can be as long as we want and include multiple blank lines in the middle. Q: What makes a question? A question is a single line that starts with Q: or q: and has a question following. Eveything following up to the next question or end-of-file is the answer to the question. Q: Is this another question? Yes it is. BEHAVIORBlank lines before and after a block of text are ignore, however blank lines inside the block of text are preserved.Trailing spaces and tabs are removed from the output stream. Special directives, comments, questions, etc. must start in column 1. Control characters and HTML may be used in the faq file and will be extracted as is. REGULAR EXPRESSIONSSearching is done with regular expressions, each regular expression listed on the command line as an argument is checked against the question list. If any question matches any regular expression, it is displayed (without the answer). This is used to reduce the number of questions down to a manageable amount. Answers may then be obtained by invoking faq with the numerical number of the question. SEARCH ORDERfaq will look for the file FAQ, then faq, then .FAQ, then .faq, then it will search for any files matching *.faq, and if that fails it will try *.FAQ.faq will ignore anything that is not a file or has an execute bit set; this prevents it from accidently opening executables and scripts. You may manually specify such files, but faq will not automatically select them during its searching. ENVIRONMENTIf faq can not find an appropiate input source in the current directory, then it looks in the directories specified by the FAQPATH environment variable. Directories are separated by colons. If no file is found after that, the PATH is searched. USAGE EXAMPLESfaq
faq - dns named bind
faq -l
faq -c
faq -qc print
faq -vq
SEE ALSOman(1), grep(1), egrep(1), regex(7)DIAGNOSTICSIf faq is successful, the exit status is 0. If there are any problems in accessing the faq file or with the user supplied options, then a non-zero exit status is returned. COPYINGPermission is granted to make and distribute verbatium copies of faq and this manual provided the copyright notice and this permission notice are preserved on all copies.The latest release should be available from ftp://ftp.wwco.com/pub/wwco/ and from http://wls.wwco.com/ AUTHORWalt Stoneburner, wls@wwco.comHISTORYI originally wrote a version of FAQ for DOS several years ago. Shortly after compiling it and posting it to the website as ftp://ftp.wwco.com/pub/wwco/dos/faq12.zip my hard drive crashed, taking with it the source code and my notes.This version for Linux is a super-set of that version. BUGSThere are no known bugs at this time, although the code could use some minor optimizations. Email bug reports to wls@wls.wwco.com. Be sure to include the word ``faq'' somewhere in the ``Subject:'' field.
Index
This document was created Time: 15:09:24 GMT, March 06, 1999 Return to MindPrint or go back to the Software Archives containing Wizard Workshop and Company distributions. |