Hi,
I want to extract a part of filename and pass it as a parameter to one of the scripts. Could someone help.
File name:-
NLL_NAM_XXXXX.XXXXXXX_1_1.txt.
Here i have to extract only XXXXX.XXXXXXX and the position will be constant. that means that i have to extract some n characters from... (6 Replies)
Hi, I need
to make some extraction . with the following input to get the right output.
input: /etc/exp/home/bin ====> output: exp
and
input: aex1234 ===> output: ex
Thanks for your help, (4 Replies)
Hi friends,
I want to select and use the certain part of a line. For example I have the following line
home/1245/hgdf/acsdf/myhome/afolder/H2O/endfile
how can I extract the part " /myhome/afolder/H2O/endfile "
thanks (6 Replies)
I need to automate something as part of post processing in a script . Each project is identified by a 3 letter string which is part of hostname and based on hostname I need to copy a particular file to that machine from my distribution .
here are hostnames
pprdifeap01.corp.host.net (where... (1 Reply)
I have a file with 100s of lines of text. I want to perform an extraction of this line:
Info bpzs(pid=2652) using 1000 bits
I have not been able to extract it. Should I try expr match or is there another method? This line has data both in front of and in back of it. I do not have grep -o... (5 Replies)
Hello All,
I need to extract part of a file into a new file
My file is
Define schema xxxxxx
Insert into table
(
a
,b
,c
,d
)
values
(
1,
2,
3, (15 Replies)
Hi,
I have a string with name as 20140412-s1-Potopolive_promos_20140412. So I want to extract only Potopolive string. Could you please help me the command.
O/p : Potopolive
Thx in advance (5 Replies)
Hi,
On AIX 7
I have :
grep 's_ohs_instance_loc' $CONTEXT_FILE
<ohs_instance_loc oa_var="s_ohs_instance_loc">/u01/appl_top/env/fs1/FMW_Home/webtier/instances/EBS_web_env_OHS1</ohs_instance_loc>
But I need only this part:... (4 Replies)
Discussion started by: big123456
4 Replies
LEARN ABOUT DEBIAN
xmltv::configure::writer
Configure::Writer(3pm) User Contributed Perl Documentation Configure::Writer(3pm)NAME
XMLTV::Configure::Writer - Configuration file writer for XMLTV grabbers
DESCRIPTION
Utility class that helps grabbers write configuration descriptions.
SYNOPSIS
use XMLTV::Configure::Writer;
my $result;
my $writer = new XMLTV::Writer::Configure( OUTPUT => $result,
encoding => 'iso-8859-1' );
$writer->start( { grabber => 'tv_grab_xxx' } );
$writer->write_string( {
id => 'username',
title => [ [ 'Username', 'en' ],
[ 'Anvaendarnamn', 'sv' ] ],
description => [ [ 'The username for logging in to DataDirect.', 'en' ],
[ 'Anvaendarnamn hos DataDirect', 'sv' ] ],
} );
$writer->start_selectone( {
id => 'lineup',
title => [ [ 'Lineup', 'en' ],
[ 'Programpaket', 'sv' ] ],
description => [ [ 'The lineup of channels for your region.', 'en' ],
[ 'Programpaket foer din region', 'sv' ] ],
} );
$writer->write_option( {
value=>'eastcoast',
text=> => [ [ 'East Coast', 'en' ],
[ 'Oestkusten', 'sv' ] ]
} );
$writer->write_option( {
value=>'westcoast',
text=> => [ [ 'West Coast', 'en' ],
[ 'Vaestkusten', 'sv' ] ]
} );
$writer->end_selectone();
$writer->end();
print $result;
EXPORTED FUNCTIONS
None.
METHODS
start()
Write the start of the <xmltvconfiguration> element. Parameter is a hashref which gives the attributes of this element.
write_string()
Write a <string> element. Parameter is a hashref with the data for the element:
$writer->write_string( {
id => 'username',
title => [ [ 'Username', 'en' ],
[ 'Anvaendarnamn', 'sv' ] ],
description => [ [ 'The username for logging in to DataDirect.', 'en' ],
[ 'Anvaendarnamn hos DataDirect', 'sv' ] ],
default => "",
} );
perl v5.14.2 2010-04-24 Configure::Writer(3pm)