Find all regular files under current directory (no subdirectories) and replace every occurrences of 'toreplace' with 'replace' in those files
find . -maxdepth 1 -type f -print0 | xargs -0 sed -i 's/toreplace/replaced/g'