bash命令重定向到哪里
我正在尝试使用下面的bash命令“commandbash命令重定向到哪里,bash,io-redirection,Bash,Io Redirection,我正在尝试使用下面的bash命令“commandf2 2>f3”,它会按如下方式工作吗 f1中的stdin将重定向到命令 命令中的标准输出将重定向到f2 命令中的stderr将重定向到f3 在执行命令行时,非常感谢 somecommand <f1 >f2 2>f3 与 <f1 somecommand >f2 2>f3 f2 2>f3 作为 <f1 >f2 somecommand 2>f3 <f1 >f2 2>f3
- f1中的stdin将重定向到命令
- 命令中的标准输出将重定向到f2
- 命令中的stderr将重定向到f3
在执行命令行时,非常感谢
somecommand <f1 >f2 2>f3
与
<f1 somecommand >f2 2>f3
f2 2>f3
作为
<f1 >f2 somecommand 2>f3
<f1 >f2 2>f3 somecommand
f2 somecommand 2>f3
作为
<f1 >f2 somecommand 2>f3
<f1 >f2 2>f3 somecommand
f2 2>f3命令
这是因为重定向与它们影响的命令分开处理,并且它们不是命令的命令行参数
另见:
- 这个命令怎么合法?“>文件1<文件2目录”
执行命令行时
somecommand <f1 >f2 2>f3
与
<f1 somecommand >f2 2>f3
f2 2>f3
作为
<f1 >f2 somecommand 2>f3
<f1 >f2 2>f3 somecommand
f2 somecommand 2>f3
作为
<f1 >f2 somecommand 2>f3
<f1 >f2 2>f3 somecommand
f2 2>f3命令
这是因为重定向与它们影响的命令分开处理,并且它们不是命令的命令行参数
另见:
- 这个命令怎么合法?“>文件1<文件2目录”