-bash-2.05b$more exec.sh
#!/bin/sh
exec 4<&0 0<echo.sh //把描述符4做为标准输入,而后打开echo.sh文件
read line1 //读入第一行
read line2 //读入第二行
exec 0<&4 //关闭描述符4
echo $line1 //输出第一行
echo $line2 //输出第二行
==============================================
-bash-2.05b$ ./exec.sh
#!/bin/sh
echo -n -e "007 Name t:c";
-bash-2.05b$