HF RL Explorer

Task: Redirect Copy of Stdout to Log File from Within Bash Script

Task: Redirect Copy of Stdout to Log File from Within Bash Script: a task in Terminal-Lego-15k (Harbor dataset). Create a bash script that redirects a copy of its stdout to a log file while also keeping the output visible on the terminal (stdout). This must be done from within the script itself…

The task

Create a bash script that redirects a **copy** of its stdout to a log file while **also** keeping the output visible on the terminal (stdout). This must be done from within the script itself, not by piping the script to an external command.

Part of PrimeIntellect/Terminal-Lego-15k.