我正在尝试执行以下操作:
exec &>filename
Run Code Online (Sandbox Code Playgroud)
在此之后,我看不到任何内容,包括我输入的内容,好吧。
我疯狂地尝试 ,exec 1>&1
和exec 2>&2
,但没有任何反应。
现在,在不杀死 shell 的情况下,如何分别取回重定向到 stdout 的输出和重定向到 stderr 的错误?文件描述符是引用标准 [in|out]put 和 stderr 的唯一方法吗?
当我尝试参考 find 命令的手册页时,我遇到了
-mmin n
The value of n can be one of the following:
n
Evaluates as True if the file modification time subtracted from the initialization time, divided by 60 seconds (with any remainder discarded), is
n.
-n
Evaluates as True if the file modification time subtracted from the initialization time, divided by 60 seconds (with any remainder discarded), is
less than n.
+n
Evaluates as True if the file modification time subtracted from the initialization time, divided …
Run Code Online (Sandbox Code Playgroud)