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.
replace data in a file
Name: gnussbaum Date: April 26, 2004 at 11:39:20 Pacific OS: Win2K and CYGWIN
Comment:
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 run the next time to "3.0a6" and so on...I'm thinking that awk and sed could do this but am not familiar with them. Any ideas??
Summary: 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") Thanks, Amit ...
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: Is there any way using the korn shell to delete all records in a file except one?? In other words if I had 6 lines in a file, could I issue one command and delete all rows execpt for row 3?? Any hel...