|
If you redirect stdout to a log file like that in the function ( > Log1 ), you won't see any output from the function (as it's redirected elsewhere). If you want to take the output from your echo and send it to a file but also leave it on STDOUT, use the tee command instead.
|