Hello everybody!
I have two files (sd.data and sdisk.cpp).
I would like to extract some information out of sd.data.
For example the product of the two numbers after the word initUcell:
initUcell 10 10
stepLimit 20000
..
..
Then I would like to substitute the result (in this case 100) into some regexp which occurs in file sdisk.cpp.
How can I use awk, sed or a combination within a script to achieve this?
Thank you for your help!
Kind regards!
I have two files (sd.data and sdisk.cpp).
I would like to extract some information out of sd.data.
For example the product of the two numbers after the word initUcell:
initUcell 10 10
stepLimit 20000
..
..
Then I would like to substitute the result (in this case 100) into some regexp which occurs in file sdisk.cpp.
How can I use awk, sed or a combination within a script to achieve this?
Thank you for your help!
Kind regards!