How to write $Log_general to Log1 and Log2 on both time, without printing anything to screen?
remark: Log1 and Log2 files need to update separately from $Log_general, I don't want to copy Log1 to Log2!!
I tried the following but only
Log2 got updated
echo $Log_general 1>Log1 1>Log2
./my_script.sh 1>Log1 1>Log2
and with the following there was the problem that
$Log_general output appears on screen while I aim to write only to the files
echo $Log_general | tee -a Log1 Log2