Search Results

Search: Posts Made By: Neethu
1,713
Posted By Neethu
I changed to open(FHN,"$datFile1") or die "Damn....
I changed to open(FHN,"$datFile1") or die "Damn. $!"; but it didnt work.

---------- Post updated at 09:54 AM ---------- Previous update was at 08:58 AM ----------

Thank you for your time.

I...
1,713
Posted By Neethu
File Name of a sample $datfile -...
File Name of a sample $datfile - Sample_20141014_100.dat
File Name of sample $f - Sample_20141014_100.dat_Column.dat
File Name of sample $datFile1 - Sample_20141014_100.dat_null.dat

When I...
1,713
Posted By Neethu
Perl - line count of a file
Hi,

I am quite new to perl scripting.

I have a dat file (datFile) from which I am pulling only first column and saving the output to a new file (f). From that file (f) I am removing blank...
11,271
Posted By Neethu
Thank you all... It worked as expected..
Thank you all... It worked as expected..
11,271
Posted By Neethu
Thank you all for the reply. I tried the below...
Thank you all for the reply.
I tried the below code. The file is a tab delimited file. If there is a null value in first column in the third row then it is pulling the second column from that row...
11,271
Posted By Neethu
Perl - Extract first column from file
Hi,

I want to extract first column from a file and redirect the output to another file in perl.

I am able to do this from command line by executing below commands.
perl -anle 'print $F[0]'...
1,190
Posted By Neethu
Thanks Ahamed for the reply. It worked as...
Thanks Ahamed for the reply.

It worked as expected.

Regards
Neethu
1,190
Posted By Neethu
Search lines between two timestamps in a file
Hi,

I want to pull lines between two timestamps from a file. When I just insert values directly it is working fine.

sed -n '/2014-02-14 05:30/,/2014-02-14 05:31/p' Logfile

When I try to...
1,580
Posted By Neethu
Thanks a lot. It is working fine..
Thanks a lot. It is working fine..
1,580
Posted By Neethu
Check the value in xml based on condition
Hi,

I have a log file having n number of xml's like the one below.

<uOStatus xmlns:env="http://abc.org/def/ghi/"...
8,487
Posted By Neethu
Hi RudiC, I have mentioned that I have so...
Hi RudiC,

I have mentioned that I have so many xml in one log at the beginning of the thread.

Thanks RudiC for the help.
8,487
Posted By Neethu
Hi RudiC, Thanks a lot for your reply. ...
Hi RudiC,

Thanks a lot for your reply.

The above code is working fine if the log has either empty timestamp1 or value in timestamp1 for all the xmls in that log. If the log have empty...
8,487
Posted By Neethu
Hi RudiC, The above code is pulling the xml...
Hi RudiC,

The above code is pulling the xml file from /<submit> till <timestamp1> even if the timestamp1 is not empty.

I want to pull the entire xml if the tag value of timestamp1 is empty.
...
8,487
Posted By Neethu
Thanks Bipin and RudiC... Both codes worked as...
Thanks Bipin and RudiC... Both codes worked as expected.

Thanks a lot Bipin for explaining me the code.

awk '/<submit>/,/<\/submit>/' log.out > xml

This will pull the entire xml tag from...
8,487
Posted By Neethu
Hi Bipin, Thanks for the reply. I am...
Hi Bipin,

Thanks for the reply.

I am pulling my xml from logs. First I want to check whether my xml is empty or not. If it is not empty then I have to check the tag value of timestamp1. If that...
8,487
Posted By Neethu
Hi RudiC, I tried the following code awk...
Hi RudiC,

I tried the following code
awk '/<submit>/,/<\/submit>/' log.out > xml
if [ -s xml ]
then
grep "<timestamp1>..*</timestamp1>" xml > tvalue
else
echo xml is empty
fi

This will...
8,487
Posted By Neethu
Hi RudiC Thanks for the quick reply. I...
Hi RudiC

Thanks for the quick reply.

I meant the value is empty.

I tried with <timestamp1>..*</timestamp1> and I am able to get the count if it having null values.

But if the log file is...
8,487
Posted By Neethu
Check null value in xml
Hi,

I have a log file which is having some xml tags. I need to check the value for a particular xml field is null or not and if it is null i have to add current time as the value for that xml...
5,046
Posted By Neethu
Thanks RudiC... Both codes worked fine...
Thanks RudiC...

Both codes worked fine...
5,046
Posted By Neethu
Thanks a lot Pamu... :) It is working as...
Thanks a lot Pamu... :)

It is working as expected...
5,046
Posted By Neethu
Thanks RudiC for the quick reply. I tried...
Thanks RudiC for the quick reply.

I tried both the codes. It is pulling the value if IJ is having a value and GH and KL is null. In all other cases (GH with value and all other null/ KL with value...
5,046
Posted By Neethu
Thanks a lot Pamu... I tried the code and it...
Thanks a lot Pamu...

I tried the code and it was working fine...

---------- Post updated at 09:08 AM ---------- Previous update was at 09:07 AM ----------

Thanks itkamaraj for your reply.
...
5,046
Posted By Neethu
Grep multiple words with not null value
Hi,

I want to grep a file if any one (GH, IJ, KL) is not null. If it is null i dont want to pull anything.

cat file | awk '{print ($1)}'
Parameters are : AB=123;CD=456;EF=6789;
cat file | awk...
Forum: UNIX and Linux Applications 10-11-2012
15,377
Posted By Neethu
Send email from outlook to server
Hi,

I am sending an email from Microsoft Outlook 2010 (microsoft exchange) to a unix server. I am not receiving the email in server but I am getting the following error in outlook.

Your...
2,319
Posted By Neethu
Hi Pamu, Thanks a lot... It is working as...
Hi Pamu,

Thanks a lot... It is working as expected...

Once again thanks a lot... :)

Regards
Neethu
Showing results 1 to 25 of 34

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