Search Results

Search: Posts Made By: vanitham
2,592
Posted By vanitham
How to delete lines from a file in PERL?
Hi,

I have 500 MB of file.

I want to retain first line and last line of the file.

I am unaware of deleting lines from a file in PERL.

How can i do it in PERL?

Regards
VANITHA
1,239
Posted By vanitham
Sure thanks, How to get this part? ...
Sure thanks,

How to get this part?


if(key == karnataka )

{

print Bangalore;

}
1,239
Posted By vanitham
How to get the correct hash value in perl?
Hi,

I have 2 dummy strings below.

I am creating a hash.


@str = qw(karnataka,tamilnadu,bihar,mumbai);
@str1 = qw(bangalore,chennai,patna,panaji);
%hash;
for($i=0;$i<=$#str;$i++) {
push...
3,070
Posted By vanitham
Hi, Thanks for the reply, Is it...
Hi,

Thanks for the reply,

Is it possible to club all the scenario and produce one code.

I am getting confused. The goal is to have one program so only file name will be passed as an input...
3,070
Posted By vanitham
How to concatenate texts in perl only?
Hi,

I want to concatenate the texts in the file but there are different scenario's.

Ist Scenario.
The contents of file has id`language,sequence number,text,language
Here id`language is a key...
128,963
Posted By vanitham
How to open the core dump file in linux?
Hi,


I have got core dump stating "core.bash.29846" so i am unable to open.

How to open the core dump file for further analysis?

Reagards
Vanitha
Forum: Programming 08-23-2011
3,905
Posted By vanitham
Query to join two tables in SQL
Hi,

I have 2 tables.


Table1
name map_code data_code id
aaa 2732C 3333B 10
bbb 1223F 2545v 11
ccc 12




Table2

name map_code data_code ...
14,141
Posted By vanitham
Hi, Thanks .. But how to stop the...
Hi,

Thanks ..

But how to stop the background process?

I meant how to check for the end of background process?

Regards
VAnitha
14,141
Posted By vanitham
Hi, How to call particular MV command as an...
Hi,

How to call particular MV command as an background?

Should i need to call a separate program and put as an background

Regards
Vanitha
14,141
Posted By vanitham
How to call a background process in perl?
Hi,

I want to put the following code as a parallel or background process

The program is as below:

$n=10; #Count of files to be created.
for($j=0;$j<=$n;$j++) {
open(FH,">files_$j.txt") ||...
7,915
Posted By vanitham
Hi, Thanks for your reply. My sense is that FTP...
Hi,
Thanks for your reply. My sense is that FTP should not be depended on the main process it should be as an background process. Yes there are chances of additional processing while the file is...
7,915
Posted By vanitham
Hi, Yes i am using FTP as a part of a larger...
Hi,

Yes i am using FTP as a part of a larger script many things are done before this i.e. the data is retrieved from the data base and processed and the results are in the file when the complete...
7,915
Posted By vanitham
How to put FTP process as a background process/job in perl?
Hi,

I am using net::ftp for transferring files now i am trying in the same Linux server as a result ftp is very fast but if the server is other location (remote) then the file transferred will be...
1,501
Posted By vanitham
Hi, The output should not be like this: ...
Hi,

The output should not be like this:

*
*
*
*
*

*
*
*
*
*
*


Say for example: Hi I am vanitha (Hi 2 starts, I one stars, am 2 stars and vanitha 7 stars)
Output:
1,501
Posted By vanitham
How to replace the string with "*" in Perl?
Hi,

I have a string like this:


$str = "hello worlds";


The string should be replaced by "*". For example if the word is "Hello" it should be replaced by 5 stars in vertical way as...
946
Posted By vanitham
Hi, Thanks for the reply. Can u give a...
Hi,

Thanks for the reply.

Can u give a small code snippet it will be helpful to me.

Regards
Vanitha
946
Posted By vanitham
How to track the opened tags in xml using perl?
Hi,

I have an xml file like this: I am using xml::dom also and libxml.

<Nodes>
<Node>
<NodeName>MainContent</NodeName>
<data>1.csv</data>
<Node>
...
1,537
Posted By vanitham
Unable to get the correct sort order in perl.
Hi,

I have created the hash.


%hash;
@arr1 = qw(Dealnum AdminStatus adminReason effFrom effTo);
@arr2 = qw(121212121 YES 1992-06-19T05:14:27 );
@hash{@arr1}=@arr2;
foreach(sort keys...
3,899
Posted By vanitham
How to nodetype as "ELEMENT_NODE" using xml::libxml in perl?
Hi,

I am using xml::libxml.

Here is the code.

my $parser = XML::LibXML->new();
my $xmldoc = $parser->parse_file ("file.xml") || die("Could not parse config xml file\n");
my $root =...
4,914
Posted By vanitham
Hi, Thank you very much for your reply. ...
Hi,

Thank you very much for your reply.

I want to use the same code using xml::libxml ?

How can i do it using XML::LIBXML in perl?

Regards
Vanitha

---------- Post updated at 02:46 AM...
1,650
Posted By vanitham
Hi, I am just trying to do one -to one...
Hi,

I am just trying to do one -to one mapping. Map the elements in first array with second array.

How is it possible in hash?

Regards
Vanitha
4,914
Posted By vanitham
How to get the main node name in xml using perl?
Hi,

I am having an conf file like this:


<Main>
<NODE>
<NODENAME>FRUITS</NODENAME>
<NAME>APPLE</NAME>
<COLOUR>RED</COLOUR>
<NODE>
<IsWrapper/>
...
1,650
Posted By vanitham
How to map the values of an array in perl?
Hi,

I have 2 arrays:


@names=qw(amith veena chaitra);
@files=qw(file.txt file1.txt file3.txt);


There is one to one relationship between names and files.

There needs to be mapping...
2,681
Posted By vanitham
Hi, It is the just junk i have send u. ...
Hi,

It is the just junk i have send u.

If u can provide the snippet for shell script that would be really great for this scenario.

I am very new to shell scripting.

The filename varies...
2,681
Posted By vanitham
Hi, The main nodes is Employee and others...
Hi,

The main nodes is Employee and others are under that node.

Is there any possibility of building an xml tree using an sax parser?

Regards
Vanitha
Showing results 1 to 25 of 135

 
All times are GMT -4. The time now is 03:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy