Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

extract_usage_from_stx(1) [debian man page]

extract_usage_from_stx()												  extract_usage_from_stx()

NAME
extract_usage_from_stx - extract "Usage:" messages from manpages written in Stx SYNOPSIS
extract_usage_from_stx [ file file ... ] DESCRIPTION
Process the given files, which should be manpages written in Stx, stripping away everything that is typically not included in a "Usage:" message. If no files are given, read standard input instead. A "Usage:" message is a message typically printed when a program is called with incorrect arguments or when help is specifically requested, for example with a --help command line option. A "Usage:" message is typically a subset of the information provided on a command's manual page. The information left in the "Usage:" message by extract_usage_from_stx includes: o the command synopsis, as given in the "SYNOPSIS" section o the command line options, as given in the "OPTIONS" section, together with the first sentence of their description. A sentence is taken to end at a period (.). The output of extract_usage_from_stx is still in Stx format, which you might want to further process to produce the actual "Usage:" mes- sage. OPTIONS
--version, -V Just show version information and exit. --help, -? Just show a short help message and exit. SEE ALSO
stx2any (1). BUGS
The end-condition of a sentence is too strong. AUTHOR
This manual page was written by Panu A. Kalliokoski. Panu A. Kalliokoski extract_usage_from_stx()

Check Out this Related Man Page

POD2USAGE(1)						 Perl Programmers Reference Guide					      POD2USAGE(1)

NAME
pod2usage - print usage messages from embedded pod docs in files SYNOPSIS
pod2usage [-help] [-man] [-exit exitval] [-output outfile] [-verbose level] [-pathlist dirlist] file OPTIONS AND ARGUMENTS
-help Print a brief help message and exit. -man Print this command's manual page and exit. -exit exitval The exit status value to return. -output outfile The output file to print to. If the special names "-" or ">&1" or ">&STDOUT" are used then standard output is used. If ">&2" or ">&STDERR" is used then standard error is used. -verbose level The desired level of verbosity to use: 1 : print SYNOPSIS only 2 : print SYNOPSIS sections and any OPTIONS/ARGUMENTS sections 3 : print the entire manpage (similar to running pod2text) -pathlist dirlist Specifies one or more directories to search for the input file if it was not supplied with an absolute path. Each directory path in the given list should be separated by a ':' on Unix (';' on MSWin32 and DOS). file The pathname of a file containing pod documentation to be output in usage message format (defaults to standard input). DESCRIPTION
pod2usage will read the given input file looking for pod documentation and will print the corresponding usage message. If no input file is specified then standard input is read. pod2usage invokes the pod2usage() function in the Pod::Usage module. Please see "pod2usage()" in Pod::Usage. SEE ALSO
Pod::Usage, pod2text(1) AUTHOR
Please report bugs using <http://rt.cpan.org>. Brad Appleton <bradapp@enteract.com> Based on code for pod2text(1) written by Tom Christiansen <tchrist@mox.perl.com> perl v5.14.2 2014-09-30 POD2USAGE(1)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

grepping for a sentence

Can you grep for a sentence. I have to search logs everyday at work and I was wondering if I could search for a string of words instead of just one. for example, if I had to find this sentence: "Received HTTP message type" How would I grep it (2 Replies)
Discussion started by: eloquent99
2 Replies

2. Shell Programming and Scripting

Extracting certain data from a sentence

How do I delete text in each line from the first character up to a certain pattern, ie. 'qmuser.' and then delete from the next occurence of a dot to the end of the sentence For example: - LTSB Renewal Notice Travel Pack --- d \qmaster\spool1\qmuser.8664_LM245_20031216094308.ps.0 From this... (7 Replies)
Discussion started by: dbrundrett
7 Replies

3. Shell Programming and Scripting

Alert When a Process Exceeds a CPU Utilization Limit...

Hi EveryOne We run CICS Sofware on our AIX Machine... When ever some Process or Transaction loops it Takes heavy process Usage.. Is there a way that i can Get a alert message or a Message Thrown on to screen when ever a process named "cicsas" uses more that 20%... fo CPU.. I was... (4 Replies)
Discussion started by: pbsrinivas
4 Replies

4. Programming

system monitoring api

Hi all, I am looking for api to get me system monitoring statictics every 5 minutes. I am looking at the following statistics: 1. System CPU Usage 2. Process CPU Usage 3. Process Memory Usage 4. I/O Usage for a certain disk. 5. Process I/O bytes/sec utilization. I have seen very... (4 Replies)
Discussion started by: uiqbal
4 Replies

5. Shell Programming and Scripting

Extracting line from a file

Hi, I would like to extract a certain portion of sentences from a particular sentence i.e. to extract the last section embrace by input output Please advice. Cheers (6 Replies)
Discussion started by: dwgi32
6 Replies

6. Shell Programming and Scripting

Trim the sentence containing colon and period to extract a word in between

Hello All , i am a newbie in korn shell scripting trying to trim a sentence that is parsed into a variable . The format of the sentence has three words that are separated from other by a " : " colon and "." period . Format of the sentence looks like ... (5 Replies)
Discussion started by: venu
5 Replies

7. Shell Programming and Scripting

extract from a long sentence

Hi, There's a long sentence from which I need to extract only the part which is at the right side of the word LENGTH i.e. 15 long sentence : <INPUT VAR1 ="" DATATYPE ="number(p,s)" VAR2 ="" VAR3 ="3" VAR4="0" VAR5 ="ELEMITEM" VAR6 ="NO" VAR7 ="NOT A KEY" VAR8 ="17" LEVEL ="0" NAME... (3 Replies)
Discussion started by: dips_ag
3 Replies

8. Shell Programming and Scripting

How to take a full sentence and check the condition?

I have one input file and content of file is : --------------------------------------------------- Input.txt --------------------------------------------------- american express Bahnbau GmbH Bahnbau GmbH CRH Europe crh europe Helgeland Ferdigbetong AS... (8 Replies)
Discussion started by: humaemo
8 Replies

9. Shell Programming and Scripting

print in incremental order a sentence

Dear help! I want to print The number i is number i let i=1 to 5 output should be like The number 1 is number 1 The number 2 is number 2 The number 3 is number 3 The number 4 is number 4 The number 5 is number 5 Would be gr8 if you mke this with awk Thanks (7 Replies)
Discussion started by: Indra2011
7 Replies

10. Shell Programming and Scripting

Regex to identify a full-stop as a sentence delimiter

Hello, Splitting a sentence using the full-stop/question-mark/exclamation is a common device. Whereas the question-mark / exclamation do not pose too much of a problem; the full-stop as a sentence delimiter raises certain issues because of its varied use: just to name a few. Standard parsers... (9 Replies)
Discussion started by: gimley
9 Replies

11. Shell Programming and Scripting

How to get a number from a grepped sentence of a file?

I want get a number(ID) from a sentence which has been grepped from file using error number. For Example: #!/bin/ksh echo "Enter RRS ID: " read rrs echo "Enter error number:" read err scp -pr ptc-avdbamdw102:/home/icsprd/M3logs/Accurate/logs/corp_post/$rrs.*.err.txt $HOME/daemon_mail/... (7 Replies)
Discussion started by: JayDoshi
7 Replies

12. UNIX Desktop Questions & Answers

Normalizing files for sentence count

I have files with many different formats and breaks in odd places. now I want to normalize them to be able to count the sentence in each file 1: I want to count the sentences is they finish with ! . ? 2: but I don't want it to count if there is no space after the Full stop. e.g. S.O.L I have... (6 Replies)
Discussion started by: A-V
6 Replies

13. UNIX for Dummies Questions & Answers

Operator Usage!

Hai, Can any one known the Usage of Below operator := Please give with an example ! (5 Replies)
Discussion started by: barathas
5 Replies

14. Shell Programming and Scripting

Print one sentence 40 to 50 words end with period in a file

Hi All, Is there another way to achieve this? how get short phrase in a sentence with character count of 100 to 155 words end with period but don't end something like 50,000. . Here's my current script but the output is not good. This will use for my snippets or preview. grep... (6 Replies)
Discussion started by: lxdorney
6 Replies

15. SCO

Command to View Processor Usage

Hi everyone, i used to know the command to show current CPU usage but i cannot remember it. It was not "Top". Openserver 6. (4 Replies)
Discussion started by: Paulbas
4 Replies