:: # cat ping.txt PING baidu.com (() bytes of data. bytes from ttl= time=32.1 ms bytes from ttl= time=31.3 ms bytes from ttl= time=31.8 ms --- baidu.com ping statistics --- packets transmitted, received, % packet loss, time 10154ms rtt min/avg/max/md
stdin,stdout,stderr stdin=0 stdout=1 stderr=2 使用tee来传递内容,把stdout 作为stdin 传到下个命令 root@172-18-21-195:/tmp/pratice# echo "who is this" | tee - # -相当于传入到stdout,所以打印2次 who is this who is this root@172-18-21-195:/tmp/pratice# echo "who is this&qu