Home>

I'm sorry, I have a question for the first time
About shell
I want to know how to output to a file with the execution result
Using tee
./helllo.sh | tee copy.txt
I understand how to do that

!/bin/bash

echo "hello"
I'd like to know how to modify the file and output it to a file, but I can't do it yet, so please give me an answer.