我很难想出 STDIN 重定向的单一实际用途。cat < /etc/passwd是 STDIN 重定向的一个示例,但它很愚蠢,就像无用的使用 cat 一样。我已经使用 Linux 15 年了,我想不出有哪一次需要 STDIN 重定向。有人有任何实际例子吗?
cat < /etc/passwd
io-redirection stdin
io-redirection ×1
stdin ×1