I saw here and here too the following construction:
exec > >(tee -a script.log)
I know what the tee command is, and the (command...) usually means execute the command
in a subshell, and exec replaces the current shell with a program, like exec ls
, (but here there is no command) and additionally what is meant with the > >
?
Can anybody clarify this dark wizzardy?
exec >{space}> (command)
@Seth? :) Any pointer where i can read more about this magic would be appreciated. :)