10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am very new to shell scripting.
I have a autosys jil file that looks like :--
/* ------------- JOB1 ------------------ */
insert_job: JOB1 job_type: b
owner: cm@pelonmuck
permission: gx,ge,wx,we,mx,me
date_conditions: 1
days_of_week: mo,tu,we,th,fr,su
start_time: "18:30"... (9 Replies)
Discussion started by: newbie_shell
9 Replies
2. Shell Programming and Scripting
Hi
I have a big text file. I want to extract all the sentences that matches at least 70% (seventy percent) of the words from each sentence based on a word list called A.
Say the format of the text file is as given below:
This is the first sentence which consists of fifteen words... (4 Replies)
Discussion started by: my_Perl
4 Replies
3. Shell Programming and Scripting
I have two files. File1 is shown below.
>153L:B|PDBID|CHAIN|SEQUENCE
RTDCYGNVNRIDTTGASCKTAKPEGLSYCGVSASKKIAERDLQAMDRYKTIIKKVGEKLCVEPAVIAGIISRESHAGKVL
KNGWGDRGNGFGLMQVDKRSHKPQGTWNGEVHITQGTTILINFIKTIQKKFPSWTKDQQLKGGISAYNAGAGNVRSYARM
DIGTTHDDYANDVVARAQYYKQHGY
>16VP:A|PDBID|CHAIN|SEQUENCE... (7 Replies)
Discussion started by: nelsonfrans
7 Replies
4. Shell Programming and Scripting
Hi Guru's,
I am new to shell scripting. I have a unique requirement:
The system generates a single pdf(/tmp/ABC.pdf) file with Invoices for Multiple Customers, the format is something like this:
Page1 >> Customer 1 >>Invoice1 + invoice 2 >> Page1 end
Page2 >> Customer 2 >>Invoice 3 + Invoice 4... (3 Replies)
Discussion started by: DIps
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I am trying to extract lines from a text file given a text file containing line numbers to be extracted from the first file. How do I go about doing this? Thanks! (1 Reply)
Discussion started by: evelibertine
1 Replies
6. Shell Programming and Scripting
Hi All,
I have a file which is like this:
rows.dat
1 2 3 4 5 6
3 4 5 6 7 8
7 8 9 0 4 3
2 3 4 5 6 7
1 2 3 4 5 6
I have another file with numbers like these (numbers.txt):
1
3
4
5
I want to read numbers.txt file line by line. The extract the row from rows.dat based on the... (3 Replies)
Discussion started by: shoaibjameel123
3 Replies
7. Shell Programming and Scripting
Hi ,
I have one xml file contains more than 60 lines. I need to extract some details from the file and store it in new file.Not the whole file
Please find the xml file below:
<?xml version="1.0" encoding="UTF-8"?>
<DeploymentDescriptors xmlns="http://www.tibco.com/xmlns/dd">
... (6 Replies)
Discussion started by: ckchelladurai
6 Replies
8. Programming
Hi ,
i have a text file that contain a story
How do i extract the out all the sentences that contain the word Mon. in C++
I only want to show those sentences that contain the word mon
eg.
Monkey on a tree.
Rabbit jumping around the tree.
I am very rich, I have lots of money.
Today... (1 Reply)
Discussion started by: xiaojesus
1 Replies
9. Shell Programming and Scripting
Hello,
I have two files that have delimited entries as shown below. I would like to use either Perl or Shell script to extract all the rows in File 1 corresponding to values in File 2 and output it to another File.
File 1
-------
1 36 24 Object1
2 45 36 Object2
3 96 ... (1 Reply)
Discussion started by: Gussifinknottle
1 Replies
10. Shell Programming and Scripting
Hi i have following file
uuid ( RO) : 62701790-60da-dd9a-669d-a563aac1c435
host-uuid ( RO): 5f3f668d-a7c7-4e5f-a4a6-6e90fafb50ed
sr-uuid ( RO): 62103d07-e0aa-acf3-2d9f-414ad3377bd0
device-config (MRO): location: /dev/xapi/block
... (6 Replies)
Discussion started by: bp_vardhaman
6 Replies
Pod::Text(3pm) Perl Programmers Reference Guide Pod::Text(3pm)
NAME
Pod::Text - Convert POD data to formatted ASCII text
SYNOPSIS
use Pod::Text;
my $parser = Pod::Text->new (sentence => 0, width => 78);
# Read POD from STDIN and write to STDOUT.
$parser->parse_from_filehandle;
# Read POD from file.pod and write to file.txt.
$parser->parse_from_file ('file.pod', 'file.txt');
DESCRIPTION
Pod::Text is a module that can convert documentation in the POD format (the preferred language for documenting Perl) into formatted ASCII.
It uses no special formatting controls or codes whatsoever, and its output is therefore suitable for nearly any device.
As a derived class from Pod::Parser, Pod::Text supports the same methods and interfaces. See Pod::Parser for all the details; briefly, one
creates a new parser with "Pod::Text->new()" and then calls either parse_from_filehandle() or parse_from_file().
new() can take options, in the form of key/value pairs, that control the behavior of the parser. The currently recognized options are:
alt If set to a true value, selects an alternate output format that, among other things, uses a different heading style and marks "=item"
entries with a colon in the left margin. Defaults to false.
code
If set to a true value, the non-POD parts of the input file will be included in the output. Useful for viewing code documented with
POD blocks with the POD rendered and the code left intact.
indent
The number of spaces to indent regular text, and the default indentation for "=over" blocks. Defaults to 4.
loose
If set to a true value, a blank line is printed after a "=head1" heading. If set to false (the default), no blank line is printed
after "=head1", although one is still printed after "=head2". This is the default because it's the expected formatting for manual
pages; if you're formatting arbitrary text documents, setting this to true may result in more pleasing output.
margin
The width of the left margin in spaces. Defaults to 0. This is the margin for all text, including headings, not the amount by which
regular text is indented; for the latter, see the indent option. To set the right margin, see the width option.
quotes
Sets the quote marks used to surround C<> text. If the value is a single character, it is used as both the left and right quote; if it
is two characters, the first character is used as the left quote and the second as the right quoted; and if it is four characters, the
first two are used as the left quote and the second two as the right quote.
This may also be set to the special value "none", in which case no quote marks are added around C<> text.
sentence
If set to a true value, Pod::Text will assume that each sentence ends in two spaces, and will try to preserve that spacing. If set to
false, all consecutive whitespace in non-verbatim paragraphs is compressed into a single space. Defaults to true.
width
The column at which to wrap text on the right-hand side. Defaults to 76.
The standard Pod::Parser method parse_from_filehandle() takes up to two arguments, the first being the file handle to read POD from and the
second being the file handle to write the formatted output to. The first defaults to STDIN if not given, and the second defaults to STD-
OUT. The method parse_from_file() is almost identical, except that its two arguments are the input and output disk files instead. See
Pod::Parser for the specific details.
DIAGNOSTICS
Bizarre space in item
Item called without tag
(W) Something has gone wrong in internal "=item" processing. These messages indicate a bug in Pod::Text; you should never see them.
Can't open %s for reading: %s
(F) Pod::Text was invoked via the compatibility mode pod2text() interface and the input file it was given could not be opened.
Invalid quote specification "%s"
(F) The quote specification given (the quotes option to the constructor) was invalid. A quote specification must be one, two, or four
characters long.
%s:%d: Unknown command paragraph: %s
(W) The POD source contained a non-standard command paragraph (something of the form "=command args") that Pod::Man didn't know about.
It was ignored.
%s:%d: Unknown escape: %s
(W) The POD source contained an "E<>" escape that Pod::Text didn't know about.
%s:%d: Unknown formatting code: %s
(W) The POD source contained a non-standard formatting code (something of the form "X<>") that Pod::Text didn't know about.
%s:%d: Unmatched =back
(W) Pod::Text encountered a "=back" command that didn't correspond to an "=over" command.
RESTRICTIONS
Embedded Ctrl-As (octal 001) in the input will be mapped to spaces on output, due to an internal implementation detail.
NOTES
This is a replacement for an earlier Pod::Text module written by Tom Christiansen. It has a revamped interface, since it now uses
Pod::Parser, but an interface roughly compatible with the old Pod::Text::pod2text() function is still available. Please change to the new
calling convention, though.
The original Pod::Text contained code to do formatting via termcap sequences, although it wasn't turned on by default and it was problem-
atic to get it to work at all. This rewrite doesn't even try to do that, but a subclass of it does. Look for Pod::Text::Termcap.
SEE ALSO
Pod::Parser, Pod::Text::Termcap, pod2text(1)
The current version of this module is always available from its web site at <http://www.eyrie.org/~eagle/software/podlators/>. It is also
part of the Perl core distribution as of 5.6.0.
AUTHOR
Russ Allbery <rra@stanford.edu>, based very heavily on the original Pod::Text by Tom Christiansen <tchrist@mox.perl.com> and its conversion
to Pod::Parser by Brad Appleton <bradapp@enteract.com>.
COPYRIGHT AND LICENSE
Copyright 1999, 2000, 2001, 2002 by Russ Allbery <rra@stanford.edu>.
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
perl v5.8.0 2002-06-01 Pod::Text(3pm)