Is there any way to use Terminal to add text to the end of all Files in a directory? TexFinder X is close, but it only searches and replaces existing text. If there's not the same text at the end of every file, it can't do it.
Thanks. That worked. I had been trying to do this...
Code:
for f in ~/html/*.html; do echo "Processing $f file.." && cat ~/close.html >> $f; done
Put your closing tags in a file... well call it close.html and we'll jsut put it in your home directory /Users/youruser/close.html. Well assume your docs are in /Users/youruser/html
Open Terminal.app and do the following command:
find ~/html -type f -name "*.html" -exec cat ~/close.html >> {} \;
but it just kept saying the directory didn't exist.