Search the directory /usr/bin for files (type f) with a maximum depth of 1 and execute the command 'sed -i '2s/foo/bar/' {}' on each file.
find /usr/bin -maxdepth 1 -type f -exec sed -i '2s/foo/bar/' {} \;