how to set output of bash script to text file windows code example Example: pipe commands into a text file bash command > file.txt