Is there a standard Bash tool that acts like echo but outputs to stderr rather than stdout?
(是否有一个标准的Bash工具,它像echo一样输出到stderr而不是stdout?)
I know I can do echo foo 1>&2
but it's kinda ugly and, I suspect, error prone (eg more likely to get edited wrong when things change).
(我知道我可以做echo foo 1>&2
但它有点难看,我怀疑,容易出错(例如,当事情发生变化时更有可能被编辑错误)。)
ask by BCS translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…