Given a main directory called FOOwith many sub-directories in there, I would like to go to each sub-directory, find the path:
/mango/pears/peanuts/butter/
Replace /mango/pears with /supplier
I understand sed is what I am looking for but I can't figure it out:
cd /FOO
sed -i 's|/mango/pears|/supplier|g' $(find . -type f)
Any thoughts? This question does not seek to rename files as in this