$ echo "hello linux shell" > tmp.txt
$ cat tmp.txt
hello linux shell
$ exec 5<tmp.txt
$ cat <&5
hello linux shell
$ exec 6>>tmp.txt
$ echo "hello linux kernel" >&6
$ cat tmp.txt
hello linux shell
hello linux kernel
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |