Search Results

Search: Posts Made By: sasiharitha
4,628
Posted By sasiharitha
How to evaluate expressions in file
I have a situation where i need to evaluate expression and do substitutions in file


file.ports
port1=`expr $STARTINGPORT + 1`
port2=`expr $STARTINGPORT + 2`
port3=`expr $STARTINGPORT + 3`
...
9,512
Posted By sasiharitha
As i mentioned in the original post, i understand...
As i mentioned in the original post, i understand that children inherit exported values from parents, because if i move that export outside su, am still able to access those values

However am...
9,512
Posted By sasiharitha
I am using Redhat Linux 2.6.32-220.4.1.el6.x86_64...
I am using Redhat Linux 2.6.32-220.4.1.el6.x86_64 and is logged in as root


The final idea is to login as root and su to some other id and run installation scripts. Those installation script need...
9,512
Posted By sasiharitha
sorry for my ignorance. What does that mean? ...
sorry for my ignorance. What does that mean?

is it not possible to do it this way?
9,512
Posted By sasiharitha
export variable not working after su
I have a requirement to change user inside a shell script and execute group of commands. I have done it many times earlier but never came across the issue with exporting variables. Strangely if a var...
6,028
Posted By sasiharitha
Thats awesome..Thanks
Thats awesome..Thanks
6,028
Posted By sasiharitha
That i cant enforce while getting the input....
That i cant enforce while getting the input. Script should be intelligent enough to put in escape characters and thats what I am looking for.
6,028
Posted By sasiharitha
Here is the actual code and data As mentioned...
Here is the actual code and data
As mentioned below, the variable value isn't getting parsed correctly and instead of $ its taking the variable name while doing sed. Can you please help on what...
6,028
Posted By sasiharitha
Sed failing for variable with special characters
This has been covered many times earlier but couldnt figure the issue myself. Can you please advise whats wrong on the below code

I have a variable with special character ($) and am using that...
21,686
Posted By sasiharitha
Replace word in a file
Guys,
I need to replace a portion of the lines in the file depending on the word

in my file i have this content
use DBNAME
go
print "use DBNAME"

i want to replace the variable DBNAME with...
5,073
Posted By sasiharitha
Can some one help please. Its essentially...
Can some one help please.
Its essentially editing a line in the file depending on the presence of word in the line

for eg: if the line is
'USE DBNAME' i want to replace DBNAME with DBNAME1.
...
5,073
Posted By sasiharitha
Need Help with Sed
Hi,
I am a beginner in Unix scripting and I would appreciate your help here

I have a file named dbprops.txt which has the following text

use DBNAME
go
print "use DBNAME"
print "go"

in my...
Showing results 1 to 12 of 12

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