Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Replacing values in a file
Name: amit4g Date: February 1, 2007 at 00:20:04 Pacific OS: hp-ux(11.23) CPU/Ram: PA Product: PA
Comment:
Hi,
how do we change a variable's value in a file? e.g. $ cat <file1> AGE=1 bla bla...........
i need to change the value of variable "AGE" to a newvalue(let's say "0")
Summary: I have a file that has the following line in it: #define MM_VERSION_STR "3.0a4" I'm trying to find a way to set up a script that, when run, will change the value of "3.0a4" to "3.0a5" and when it is ...
Summary: my problem is i want to replace a line in a file e.g i want to replace the line DBUID= (some name) with DBUID=$user variable file name is sample.ksh DBUID=aruns010 please help me in solving this pro...
Summary: Hi, I'm trying to use AWK to find a line in a file equal to 2 different variables and write it to another variable. I can find the values individually but I can't work out how to put them together. ...