Search Results

Search: Posts Made By: upsrk
5,463
Posted By upsrk
Thank Ynir and era I am new to the script,...
Thank Ynir and era

I am new to the script, would greatly appreciate if you can tell how to put all of this together in a script.

Thanks Again for your help
5,463
Posted By upsrk
How to copy and comment out
I need help with a script. Here's what I want to do.

I have a file "upsrk.txt" which can be either under "/home/upsrk" OR "/home/oracle"

On some systems file "upsrk.txt" may not exist, in that...
26,462
Posted By upsrk
Thanks era, it works but there are still some...
Thanks era, it works but there are still some issues.

if there's more than one blank space between host and sid then it does not work AND also if there are more than one line with the same host...
26,462
Posted By upsrk
Yes, the comment could go after the DISABLE line...
Yes, the comment could go after the DISABLE line but in the second part of the sed command if there are multiple entries with comment '#' and DISABLE THEN I want to un-comment and delete the DISABLE...
26,462
Posted By upsrk
Hi era / Scripting experts I still help to...
Hi era / Scripting experts

I still help to know how to reverse the process..

Thanks in advance
26,462
Posted By upsrk
I wanted to look for host and sid and then delete...
I wanted to look for host and sid and then delete a line with mail=DISABLE and un-comment the line above it. The reason... in actual there may be many lines in the file with '#' at the beginning but...
26,462
Posted By upsrk
Thank You, works perfectly.... Sincere...
Thank You, works perfectly....

Sincere apologies for asking another question but I am very new to scripting and need some HELP.

Question:

How to reverse it.. means find the line with...
26,462
Posted By upsrk
Thank you so much for your help. Another...
Thank you so much for your help.

Another question :

How can I also replace "mail=def@abc.com" with "mail=DISABLE" in the line which is NOT commented out ('#').

Thanks Again
26,462
Posted By upsrk
How to copy and paste line in shell script
Hi

I want to grep for a line and copy and paste that line.

for Example

---- file abc.txt ----
host=atlx1 sid=atld1 mail=abc@abc.com
host=atlx2 sid=atld2 mail=xyz@abc.com
host=atlx3...
Showing results 1 to 9 of 9

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