I run the following command:
find . -name '*.html' -exec sed "s/foo/bar/g" {} \;
where the file structure is as follows:
./two/three.html ./two/two.html ./two/one.html ./three/three.html ./three/two.html ./three/one.html ./one/three.html ./one/two.html ./one/one.html
However, sed returns, stating that the files cannot be found even if these two commands work fine (i.e. I can run the search on my own, and I can run sed on my own).
I looked at him with peers, and he was also at an impasse. I ended up going the other way, but I still would like to know what exactly is happening here.
replace search sed
Zac lozano
source share