Find all files in the current working directory that are empty and execute the command "sed -i 's/#$/hello world!/g' {}" on each of them.
find $(echo $PWD) -type f -empty -exec sed -i 's/#$/hello world!/g' {} \;