I'm working on a script and I'm stuck, even with the help of the google.
Here's my code:
for FOLDER in `find . -type d | sed "s#^.#$(pwd)#" | sed 's/ /\ /g'` do echo "$FOLDER" done
This will replace only the first instance of " " with "\ " but not the rest.