Find all files in the current working directory with a name ending in ".txt", and for each of those files, execute the command "sed -i 's/\w\+/[&]/g' {}", where {} is the name of the file.
find $(pwd) -iname "*.txt" -exec sed -i 's/\w\+/[&]/g' {} \;