Search Results

Search: Posts Made By: mohit_vardhani
8,298
Posted By mohit_vardhani
Thank you , but the while condition is working...
Thank you , but the while condition is working fine.

I am having issues with the for loop which is running inside else statement under remote ssh.
8,298
Posted By mohit_vardhani
Ssh to multiple hosts and then run multiple for loops under remote session
Hello,

I am trying to login to multiple servers and i have to run multiple loops to gather some details..Could you please help me out.

I am specifically facing issues while running for loops.
...
3,319
Posted By mohit_vardhani
This will work , thank you and sorry for not...
This will work , thank you and sorry for not using tags , now i got it.

One more thing , is there any way to timeout any command which is taking more time or hung in script due to any reason. I am...
3,319
Posted By mohit_vardhani
Hi vgersh99...
Hi vgersh99 (https://www.unix.com/members/37898.html) ,

Just need one more help , actually when i am running the below code on mutiple servers for the NFS filesystems , it gets hung , so is there...
13,003
Posted By mohit_vardhani
Thanks for the response. I will try this thing. ...
Thanks for the response. I will try this thing.

I just have one more issue related to find and replace with sed.

Lets say i have a file abc.txt like below

nas1:/var/core/test /test...
3,319
Posted By mohit_vardhani
Its working , Thank you so much :)
Its working , Thank you so much :)
3,319
Posted By mohit_vardhani
I am using the code provided above by vgersh99...
I am using the code provided above by vgersh99 (https://www.unix.com/members/37898.html) , and it worked. Can someone please help me to use this command as case insensitive.

I mean it should ignore...
13,003
Posted By mohit_vardhani
Hi Guys , Thanks for all the details , and...
Hi Guys ,
Thanks for all the details , and sorry for not being too descriptive about my problem.

Let me try to explain again with proper details.

I am writing a shell script in bash in which i...
13,003
Posted By mohit_vardhani
Shell Scripting , need to search and replace a string in AIX
Hi Guys,

I need to search and replace a string in AIX using variables and should be case insensitive.

I am able to search and replace using below command but its not working as case...
3,319
Posted By mohit_vardhani
Actually i am running this command remotely under...
Actually i am running this command remotely under the script , so it won;t run without escape the dollar sign

I have to grep this from df command , so i am using like below

PR="\$(df -hTP | awk...
3,319
Posted By mohit_vardhani
Thanks , its working when running directly from...
Thanks , its working when running directly from terminal.

But when i am passing variable its not working.
I am using this under remote server

PR="\$( cat filename | awk -vVAL="$my_var"...
3,319
Posted By mohit_vardhani
Shell Scripting , need to search and print a line that contains a specific pattern
Take example of below file.

abc.txt
nas1:/abc/test/test1 /test
nas1:/abc/test/test1/test2 /test/abc
nas1:/abc/test/

Now i have a variable that contains...
Showing results 1 to 12 of 12

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