linux-tutorial/codes/shell/示例脚本/输入和输出/创建自己的重定向/创建读写文件描述符.sh
2019-10-10 08:56:31 +08:00

9 lines
134 B
Bash

#!/bin/bash
# testing inpiut/output file descriptor
exec 3<> test
read line <&3
echo "Read: $line"
echo "This is the test line" >&3