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…
movie.mpeg.001 movie.mpeg.002 movie.mpeg.003 ... movie.mpeg.099 $cat movie.mpeg.0*>movie.mpeg Examples: cat f - g Output f's contents, then standard input, then g's contents. cat Copy standard input to standard output. Shell 输入/输出重定向 https://ip…
Dim StdIn, StdOutSet StdIn = WScript.StdInSet StdOut = WScript.StdOut Do While Not StdIn.AtEndOfStream str = StdIn.ReadLine '读取cmd屏幕写入的字符串 If str="exit" Then WScript.Quit StdOut.WriteLine "Line "…