I am struggling to find a way to replace all the lines with the following information in *.tex files for example:
text{fig/titel/Logo}text
to
text{fig/titel/Logo.png}text
I have tried:
egrep --include=*.tex -r ".*{fig/.*" *
and it gives me the lines where I want to make the changes. But how do I proceed further with the sed command for example?
I have used find and sed, but never used grep and sed. Can anyone please help?
titel/Logo
or could they be different? – Stephen Harris Aug 19 '16 at 14:48-exec
s with conditions – don_crissti Aug 19 '16 at 19:18