I need to write my outputs from shell into a text file to keeping some required records. Can anyone please tell me how can I do this?

Thanks

Edit
Report