创建读写文件描述符

5年以前  |  阅读数:469 次  |  编程语言:Shell 
#!/bin/bash
# testing inpiut/output file descriptor

exec 3<> test
read line <&3
echo "Read: $line"
echo "This is the test line" >&3

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8