小编Wim*_*nen的帖子

Unix 相当于 PowerShell?

当复杂的 shell 命令涉及使用AWK解析文本输出时,我总是觉得很尴尬。基本上,我们将结构化数据转换为文本,然后再次解析文本以返回结构化数据。

PowerShell是一个 Windows 外壳程序,它通过允许您在外壳程序命令之间使用管道输入对象而不仅仅是文本来避免该问题。

是否有任何基于对象而不是基于文本的 Unix shell,例如 PowerShell?

shell

23
推荐指数
3
解决办法
1万
查看次数

如何使 screen -R 附加到最年轻的分离会话?

我在 debian lenny 上使用screen,我想使用该-R选项。来自man screen

   -R   attempts  to  resume  the  youngest  (in  terms  of creation time)
        detached screen session it finds.  If successful, all  other  com?
        mand-line  options  are  ignored.   If no detached session exists,
        starts a new session using the specified options, just  as  if  -R
        had  not been specified.
Run Code Online (Sandbox Code Playgroud)

但是,当我运行screen -R它时,它实际上并没有附加到最年轻的分离会话。相反,它抱怨有“几个合适的屏幕”,我需要选择其中之一。

我错过了什么吗?我如何使这项工作如宣传的那样?

gnu-screen

19
推荐指数
1
解决办法
8541
查看次数

标签 统计

gnu-screen ×1

shell ×1