
May 17th, 2004, 01:09 PM
|
|
Registered User
|
|
Join Date: Feb 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
awk noob needs some help
Still trying to figure this awk stuff out! I'm confused about if the field you want to replace is on another line. For example I have a file named MMVer.r and in it is:
Code:
resource 'tver' (1000) {
"3.0a6"
};
How would I change the "3.0a6" to "3.0a7" then the next time I run the awk command, to 3.0a8 and so forth. Since the field is on the second line I'm not sure how?
Also, I'd like to change the value inside MMVer.r without having to create another file. I'll be putting the awk/gawk command in a script and want it to just change the value of "3.0a6". I hope this makes sense.
P.S. - I'll need that a6 value to go higher than 10, i.e. a25...
|