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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.