Find all files in the current directory (and its subdirectories) whose name ends with ".txt", and for each of those files, insert a new line at the 5th line.
find ./* -iname "*.txt" -exec sed -i '5s/^/\\n/' {} \;