PHP
·
发表于 5年以前
·
阅读量:8296
#!/bin/bash
# using an alternative file descriptor
exec 3>test
echo "This should display on the monitor"
echo "and this should be stored in the file" >&3
echo "Then this should be back on the monitor"