Find all files with the extension ".sh" in the root directory and its subdirectories, add a "#!" to the beginning of each file, and then echo the path of each file to the ~/bin directory.
find -L / -iname '*.sh' -exec sed 's/^/#!/' {} \; -exec echo ~/bin/{} +