I have below command to output shell script to a file **RestartLog.log**, then to grep only "error" to another file **RestartLog\_ERROR.log**.

```
 sudo  ./DailyRestart.sh |sudo tee  /RestartLog.log |grep ERROR | sudo tee /RestartLog_ERROR.log

```

I have two issues

* **Issue 1 :** I need to add another file **"RestartLog\_WARNING.log"** for "warning" along with "error" , is it possible
* **Issue 2 :** Currently error out is only printing to console, i need full output to console not error output

Please help me in fixing both issues