Search Results

Search: Posts Made By: sharsour
72,707
Posted By sharsour
Reading XML file and extracting value
Dear All,

I am reading one XML file to extract value from the particular tag:-
Sample xml is below:-

<KeyValuePairs>
<Key>TestString</Key>
<Value>Test12_Pollings</Value>
</KeyValuePairs>...
1,816
Posted By sharsour
Comparing delta values of one xml file in other xml file
Hi All,


I have two xml files.

One is having below input

<NameValuePair>
<name>Daemon</name>
<value>tcp:7474</value>
</NameValuePair>
...
2,655
Posted By sharsour
Thanks Kris, Its working fine for me.
Thanks Kris, Its working fine for me.
2,655
Posted By sharsour
How to ignore comments at the end of the each line?
Hi All,

I am reading the host file by ignoring the comments and write it to the other file. I am reading with regular expression for IP address.


grep -E...
2,686
Posted By sharsour
I mean it just read the first project name and...
I mean it just read the first project name and archive name and start it in the same shell. So it executes the second script properly and start the application but my expectation is start the first...
2,686
Posted By sharsour
Calling multiple scripts from another scripts
Dear all,

I am working on script which call other shell scripts in a loop but problem is from second script am not able to come out.

Here is the snippet:-


#!/bin/bash...
2,088
Posted By sharsour
WOW!!! Both solutions are working fine for me.....
WOW!!!
Both solutions are working fine for me.. Thanks a ton for the kind help.
2,088
Posted By sharsour
Yes Jotne, Its changing value for differnt...
Yes Jotne, Its changing value for differnt domain, As of now I have only one domain but in higher environments , it will be multiple domains
I need value between domain and application which is the...
2,088
Posted By sharsour
Hi, here is the output of ps -ef | grep...
Hi,

here is the output of ps -ef | grep engine


bea 14780 1 0 Aug06 ? 00:01:06 /opt/bea/osb/5.9/bin/engine --pid --run --propFile...
2,088
Posted By sharsour
Hi Ahamad, I was trying to print some of...
Hi Ahamad,

I was trying to print some of the middle value of the string like

/opt/test/user/domain/CORPTEST/application/CacheScheduler/CacheScheduler-CacheScheduler

I want CORPTEST as the...
2,088
Posted By sharsour
Thanks ahamed, it works like a charm. My...
Thanks ahamed, it works like a charm.

My mistake, dint mention in the first post itself.
Last word is CacheScheduler-CacheScheduler.ear

its is giving me the exact, but wanted to know if...
2,088
Posted By sharsour
How to grep the required part from the string?
Hi All,

I am trying to fetch the particular content from the result of grep command.

I am using



ps-ef |grep engine| awk '{print $6}'


above statement giving me

...
1,311
Posted By sharsour
thanks Guys, Evryone's code is working I am...
thanks Guys, Evryone's code is working

I am going to use DeCoTwc code.
1,311
Posted By sharsour
awk command issue
Hi All,

I have one file with below content


Post1:uri
Post2:urieop
Post3:urtei


I am trying to read each word seprated by delimiter with below command


Value1=$(awk -F":"...
10,836
Posted By sharsour
Sorry for the Typo This command is working...
Sorry for the Typo

This command is working for me
ls /home/username/Test/*.txt

But when am running your command getting an error

ls /home/username/Test/Server1*.txt

Let me reiterate my...
10,836
Posted By sharsour
SO now I have hardcoded the full path without...
SO now I have hardcoded the full path without variable

ls \home\username\Test\*Server1.txt

So do you mean to so this command should list all the files in the Test Directory which contains...
10,836
Posted By sharsour
Thanks Singh, Will run your script and get...
Thanks Singh,

Will run your script and get back.
Is there any single line to achieve this requirement?
10,836
Posted By sharsour
Hi Kris, I have tried the ls command also...
Hi Kris,

I have tried the ls command also but giving me the same issue.

No files are getting listed and giving me the no such file found error.
10,836
Posted By sharsour
DR_HOME='/home/user/Test/' Inside this I...
DR_HOME='/home/user/Test/'

Inside this I have OS folder and than files with name containing Server1
10,836
Posted By sharsour
Thanks Krish, I tried that also but not...
Thanks Krish,

I tried that also but not working.
Giving me error. "No such file or directory"

I am using bash.
10,836
Posted By sharsour
How to concatenate the files based upon the file name?
Hi Experts,

I am trying to merge multiple files into one file based upon the file name.


Testreport_Server1.txt ============
MonitoringReport_Server1.txt============ ...
3,558
Posted By sharsour
Thanks Made in Germany & Raja sed...
Thanks Made in Germany & Raja


sed "s#URL.#& $url#"


It is working fine for me.
3,558
Posted By sharsour
Hi Raja, I have tried that multiple time...
Hi Raja,

I have tried that multiple time but getting the same issue.

Pasting my script.


#! /bin/bash
HSFILE=/home/user/Temp/Test/Log/Server2/Components.txt
num=1
while IFS="|" read...
3,558
Posted By sharsour
I have tried both single quotes everywhere and...
I have tried both single quotes everywhere and double quotes everywhere.
It straight away giving me the expression error

sed: -e expression #1, char 25: unknown option to `s'
3,558
Posted By sharsour
Hi Milan, It is giving the same issue. ...
Hi Milan,

It is giving the same issue.

If i go with

sed -e 's/URL./&"$url"/g'


it is replacing the $url as it is instead of replacing the value of variable.

For rest of the...
Showing results 1 to 25 of 90

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