Which of the following are valid stream redirection operators within Bash? (Choose THREE correct answers.)
A. <
B. <<<
C. >
D. >>>
E. %>
题解
选项 A,可以将文件串流当作输入串流。
写成程序有点像是:
port0 = stdin;
port0 = file;
选项 B,可以将文字或是变量的内容输入至输入串流。
写成程序有点像是:
port0 = stdin;
port0 = myInputStream;
选项 C,可以将输出串流接到文件串流。
写成程序有点像是:
port1 = stdout;
port1 = file;
选项 D,没有这样的用法。
选项 E,没有这样的用法。
