I have to replace a specific line of a file with some other value. for eg: I have a file with content as below:
request.timing=0/10 * * * * * ?
Now, I want to replace 10 (or to be specific, any value in that place) with a dynamic value. Eg, if I want to replace that with 20, the file should be updated as:
request.timing=0/20 * * * * * ?
Can someone help me? I am using sed as below:
sed -i "s/request.timing=0\/??/request.timing=0\/$poller"
where poller is dynamic value we pass.