I am trying to write a script that appends a line of text to a group of files.
Currently I have a text list of directories with complete path, but no file name.
Here is my sample I am building from:
echo "hello" | tee -a file1 file2
It works fine but I need to output to 130 Makefiles in...
I want to know how to do the same as I can do on Linux:
exec &> >(tee -a "$log_file")
The above command is found from http://unix.stackexchange.com/questions/145651/using-exec-and-tee-to-redirect-logs-to-stdout-and-a-log-file-in-the-same-time, but it does not work on FreeBSD 10.3