[PLUG] requesting help with sed...
Sameer Oak
samoak at gmail.com
Tue Nov 17 14:05:20 IST 2009
ALL,
I need help with a particular sed pattern.
I am maintaining a version file wherein I need to search for a line that
starts with "build_number_i".
Following are the contents of the file:
build_type_i=i
build_number_i=1
branch_name_i=trunk
build_id=1
Each line is of the form <variable_name>=<value>
I want to increment value of variables "build_number" and "build_id" by 1.
How can I achieve it with sed?
Kindly help.
----
Regards,
- sameer oak.
More information about the Plug-mail
mailing list