Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Traveller''s Lunchbox

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 60 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here




       lexgrog [-m|-c] [-fhwV] file ...


       lexgrog  is  an  implementation  of the traditional "groff
       guess" utility in lex.  It reads the list of files on  its
       command line as either man page source files or preformat­
       ted "cat" pages, and displays their name  and  description
       as  used  by apropos and whatis, the list of preprocessing
       filters required by the man page before it  is  passed  to
       nroff or troff, or both.

       If its input is badly formatted, lexgrog will print "parse
       failed"; this may be useful  for  external  programs  that
       need  to  check man pages for correctness.  If one of lex­
       grog's input files is "-",  it  will  read  from  standard
       input;  if  any  input  file is compressed, a decompressed
       version will be read automatically.


       -m, --man
              Parse input as man page source files.  This is  the
              default if neither --man nor --cat is given.

       -c, --cat
              Parse   input   as  preformatted  man  pages  ("cat
              pages").  --man and --cat may not be given simulta­

       -w, --whatis
              Display  the  name  and  description  from  the man
              page's header, as used by apropos and whatis.  This
              is the default if neither --whatis nor --filters is

       -f, --filters
              Display the list of filters  needed  to  preprocess
              the man page before formatting with nroff or troff.

       -h, --help
              Print a help message and exit.

       -V, --version
              Display version and author information.


       0      Successful program execution.

       1      Usage error.

       2      lexgrog failed to parse one or more  of  its  input

       names and descriptions of the features documented in each.
       While the parser is quite tolerant, as it has to cope with
       a  number  of  different forms that have historically been
       used, it may sometimes fail to extract the required infor­

       When  using  the traditional man macro set, a correct NAME
       section looks something like this:

              .SH NAME
              foo \- program to do something

       Some manual pagers require  the  `\-'  to  be  exactly  as
       shown;  mandb is more tolerant, but for compatibility with
       other systems it is nevertheless a good idea to retain the

       On  the  left-hand side, there may be several names, sepa­
       rated by commas.  The text on the right-hand side is free-
       form,  and  may be spread over multiple lines.  If several
       features with different descriptions are being  documented
       in  the  same manual page, the following form is therefore

              .SH NAME
              foo, bar \- programs to do something
              baz \- program to do nothing

       (A macro which starts a new paragraph, like  .PP,  may  be
       used instead of the break macro .br.)

       When  using the BSD-derived mdoc macro set, a correct NAME
       section looks something like this:

              .Sh NAME
              .Nm foo
              .Nd program to do something

       There are several common reasons why whatis parsing fails.
       Sometimes  authors of manual pages replace `.SH NAME' with
       `.SH MYPROGRAM', and then mandb cannot  find  the  section
       from which to extract the information it needs.  Sometimes
       authors include a NAME section, but place  free-form  text
       there  rather  than  `name  \- description'.  However, any
       syntax resembling the above should be accepted.


       man(1), mandb(8), apropos(1), whatis(1).


       lexgrog attempts to parse files containing  .so  requests,

2.4.1                   07 September 2001              lexgrog(1)
Help us cut cost by not downloading the whole site!
Use of automated download sofware ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and therefore is expressedly prohibited. For more details on this, take a look here



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
You can help in many different ways.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.11 Seconds