PHP
·
发表于 5年以前
·
阅读量:8282
#!/bin/bash
#storing STDOUT, then coming back to it
exec 3>&1
exec 1>test
echo "This should store in output file"
echo "along with this line"
exec 1>&3
echo "Now things should be back to normal"