Search Results

Search: Posts Made By: pottic
4,546
Posted By pottic
How to pass variable from one function to another function?
updateEnvironmentField() {

linewithoutquotes=`echo $LINE | tr -d '"'`
b()
}




I want to pass variable named $linewithoutquotes to another method called b(), which is...
5,545
Posted By pottic
The issue is resolved.Thanks for the support
The issue is resolved.Thanks for the support
5,545
Posted By pottic
I will try the above options and get back to you
I will try the above options and get back to you
5,545
Posted By pottic
2.6.32- Red hat version and I am using sh ...
2.6.32- Red hat version and I am using sh

------ Post updated at 11:33 PM ------

Hi

I need few commands which I could try
5,545
Posted By pottic
Hi I am using regular .sh file . I am...
Hi

I am using regular .sh file .

I am using Redhat linux as Operating system
5,545
Posted By pottic
How to remove leading and trailing spaces for variable in shell script?
Hi

I have variable named tablename. The value to tablename variable has leading and trailing white spaces. How to remove the leading and training white spaces and write the value of the...
5,582
Posted By pottic
Hi RudiC Thanks for your reply. You can mark...
Hi RudiC

Thanks for your reply. You can mark this thread as resolved. Thanks a lot for your timely support
5,582
Posted By pottic
Hi RudiC I am still in the process of...
Hi RudiC

I am still in the process of testing the logic u sent to me.I will keep you posted once I throughly test all my scenarios
5,582
Posted By pottic
Hi RudiC I appriciate your quick response. I...
Hi RudiC

I appriciate your quick response. I will test the above logic and update you

Thanks again for all your help
5,582
Posted By pottic
I have done it above. You want me to post again ?
I have done it above. You want me to post again ?
5,582
Posted By pottic
What do you mean by code tags I am new to this...
What do you mean by code tags I am new to this forum so can you help me out so that next time I don't make the mistake

---------- Post updated at 08:42 AM ---------- Previous update was at 08:30...
5,582
Posted By pottic
Ok My bad again. Again I missed typing b.txt in...
Ok My bad again. Again I missed typing b.txt in my file 2. Please accept my apologies

My file 1 contents will be something like this


"BRGTEST-242" a.txt
"BRGTEST240" a.txt
"BRGTEST-219"...
5,582
Posted By pottic
My bad I typed in wrong file 1 contents My...
My bad I typed in wrong file 1 contents

My file 1 will be something like this

"BRGTEST-242" a.txt
"BRGTEST240" a.txt
"BRGTEST-219" b.txt

My file 2 will be something like this
...
5,582
Posted By pottic
I executed your code I am getting the output like...
I executed your code I am getting the output like this

"BRGTEST-244" is dependent on "BRGTEST-240" for the file a.txt
"BRGTEST-221" is dependent on "BRGTEST-219" for the file b.txt

But the...
5,582
Posted By pottic
So lets say I have file 1 with contents as shown...
So lets say I have file 1 with contents as shown below

"BRGTEST-242" a.txt
"BRGTEST-240" b.txt
"BRGTEST-219" c.txt

I have file 2 with below contents

"BRGTEST-244" a.txt
"BRGTEST-244"...
5,582
Posted By pottic
What operating system are you using? I am...
What operating system are you using?

I am using red hat linux

What shell are you using?

I am running .sh file

What logic is used to determine that one test is dependent on another test?
...
5,582
Posted By pottic
Below is the code I have cat $baseDir/File1...
Below is the code I have

cat $baseDir/File1 | while read line
do
IFS='
'
JIRAID=`echo $line | grep -Eo '([A-Z]{3,}-)([0-9]+)'`
cat $baseDir/File2 | while read line2
do...
5,582
Posted By pottic
Shell script (sh file) logic to compare contents of one file with another file and output to file
Shell script logic

Hi

I have 2 input files like with file 1 content as (file1)

"BRGTEST-242" a.txt "BRGTEST-240" a.txt "BRGTEST-219" e.txt

File 2 contents as fle(2)

"BRGTEST-244" a.txt...
Showing results 1 to 18 of 18

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