I want to append a line to the end of every file in a folder. I know can use
echo apendthis >> file
to append the string to a single file. But what is the best way to do this recursively?
find . -type f -exec bash -c 'echo "append this" >> "{}"' \;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With