Bash Scripting:storing STDOUT, then coming back to it
#!/bin/bash # # storing STDOUT, then coming back to it # exec 3>&1 exec 1>test14out
echo "This should store in the output file" echo "along with this line"
exec 1>&3
echo "Now things should be back to normal"
No comments:
Post a Comment