Hi All,
I am new to Shell Scripting.
I have a file consisting of XML messages.Each message is associated with a timestamp value(it is not a xml field).I need to extract\copy all messages in a particular time interval and put in another new file using Shell Scripting. My XML looks like... (3 Replies)
hi everybody,
i have a file, in it I need to extract some data that follows a particular pattern..
For example: my file contains like
now running Speak225
sep 22 mon 16:34:05 2008
--------------------------------
... (4 Replies)
The following script code works great for extracting 'postmaster' from a line of text stored in a variable named string:
string="PenaltyError:=554 5.7.1 Error, send your mail to postmaster@LOCALDOMAIN"
stuff=$( echo $string | cut -d@ -f1 | awk '{ print $NF }' )
echo $stuff
However, I need to be... (9 Replies)
Hello dear friends,
My problem as explained below seems really basic.
Fact is that I'm totally new to programming, and have only a week to produce a script ( CShell or Perl ? ) to perform this action.
While searching on the forums, I found a command that could help me, but I don't know... (2 Replies)
Hi All,
I need to extract 543 from the command below :
# pvscan
PV /dev/sdb1 VG vg0 lvm2
Total: 1 543.88 GB] / in use: 1 / in no VG: 0
I have the following command which does the job, but I think this could be achieved in a more simple way using sed or awk. Any help is... (7 Replies)
Hi,
I need some help in getting extracting the specific horizontal and vertical texts in a single line. I am trying to extract few of the parameters from a config file. Your help is appreciated.
Desired Output
----------------
Pool members members ... (4 Replies)
Hi everyone!
I'm writting a function in .bashrc to extract some text from a file. The file looks like this:
" random text
Begin CG step 1
random text
Begin CG step 2
...
Begin CG step 100
random text"
For a given number, let's say 70, I want all the text between "Begin CG... (4 Replies)
Dear All,
I am trying to extract text from a file containing cron entries.
cat /var/tmp/cron_backups/debmed_tmp
< * * * * * /bell
> * * * * * /belly
what I am trying to do is create two text files containing all entries that begin with < and another text files containing entries with > .... (4 Replies)
HI Guys,
I have file A.txt
Code:
ID,L1,L2,L3,L4
1A,2a,33a,44b,55c
2A,10a,14a,15b,16c
File B.txt
Code:
ID
L1
L4
L5
Output:-
Code: (3 Replies)
Discussion started by: huuanh2811
3 Replies
LEARN ABOUT REDHAT
gimp::pod
Pod(3) User Contributed Perl Documentation Pod(3)NAME
Gimp::Pod - Evaluate pod documentation embedded in scripts.
SYNOPSIS
use Gimp::Pod;
$pod = new Gimp::Pod;
$text = $pod->format ();
$html = $pod->format ('html');
$synopsis = $pod->section ('SYNOPSIS');
$author = $pod->author;
@sections = $pod->sections;
DESCRIPTION
"Gimp::Pod" can be used to find and parse embedded pod documentation in gimp-perl scripts. At the moment only the formatted text can be
fetched, future versions might have more interesting features.
METHODS
new return a new Gimp::Pod object representing the current script or undef, if an error occured.
format([$format])
Returns the embedded pod documentation in the given format, or undef if no documentation can be found. Format can be one of 'text',
'html', 'man' or 'latex'. If none is specified, 'text' is assumed.
section($header)
Tries to retrieve the section with the header $header. There is no trailing newline on the returned string, which may be undef in case
the section can't be found.
author
blurb
description
copyright
Tries to retrieve fields suitable for calls to the register function.
sections
Returns a list of paragraphs found in the pod.
AUTHOR
Marc Lehmann <pcg@goof.com>
SEE ALSO perl(1), Gimp(1),
perl v5.8.0 2001-12-06 Pod(3)