Search Results

Search: Posts Made By: gauravgoel
39,673
Posted By gauravgoel
Calling all unix gurus to solve the above...
Calling all unix gurus to solve the above problem.
I gave the above solution to Kingkong which is working fine on my system, I am using HP-UX . But the same solution is not working on Kingkong's...
39,673
Posted By gauravgoel
Hi Kingkong, Sorry Buddy, Now we'll wait...
Hi Kingkong,

Sorry Buddy, Now we'll wait for someone to resolve the problem.
Just do one thing paste your entire code here for the reference of Gurus and if possible specify the exact problem....
39,673
Posted By gauravgoel
Ok this is my last try, Copy the exact...
Ok this is my last try,

Copy the exact script in solution.sh. Keep your data in file.txt.
And in the script change the variable name max to something else, may be maximum everywhere.
Then...
39,673
Posted By gauravgoel
Kingkong did you removed the previous...
Kingkong

did you removed the previous script named max
if not delete it and then run the new script

Gaurav
39,673
Posted By gauravgoel
Hi , May be this is the reason. Change the...
Hi ,
May be this is the reason.
Change the name of your script.
And it will work out
max is the name of variable and some conflict may be there.
so change the name of script and run it

...
39,673
Posted By gauravgoel
Hi Kingkong, No idea now, lets wait for...
Hi Kingkong,

No idea now, lets wait for some guru to throw some light on it. Don't know why you are not able to set the value of max variable.
One quick question are you using the exact code I...
39,673
Posted By gauravgoel
Hi KingKong, The reason is that the value...
Hi KingKong,

The reason is that the value of max variable is not getting changed. Even I don't know why.

Try with the following modified script and tell me what happened with this, even I am...
39,673
Posted By gauravgoel
Hi KingKong, Now I dont have any idea why...
Hi KingKong,

Now I dont have any idea why its not working for you and working fine for me. Can you run it with set -x enabled and paste the output here.

Regards,
Gaurav
39,673
Posted By gauravgoel
Hi Kingkong the code is working fine for me as...
Hi Kingkong the code is working fine for me as you can observe below



I used your data only as input.

Can some guru please throw some light on it. Is this due to differnce of shell.
I am...
39,673
Posted By gauravgoel
Hey kingkong , Heres the solution ...
Hey kingkong ,

Heres the solution



where your data is in file.txt
do let me know if it works
cheers ,

Gaurav
Showing results 1 to 10 of 10

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