将上次创建文件的文件名通过管道传输到 imagej 中不显示图像

Piping filename for last create file into imagej does not show image

我有一个很大的图像目录,想通过命令行访问最新的图像。我想使用 imagej 显示它,但是命令的管道确实打开了 imagej,但没有打开图像:

  ls -Art | tail -n 1| imagej 

是我正在使用的命令。我做错了什么吗?我在使用 xubuntu 的 docker 图像上。

如果我只使用 ls -Art | tail -n 1,我会得到图像:1541917543_right.tiff。如果我将 imagej 命令与文件名一起使用,则会正确显示。

将 imagej 命令放在最后,你想将文件名通过管道传递到命令中

可能是需要使用--open选项的情况:

ls -Art | tail -n 1 | imagej --open

或者尝试使用 xargs:

ls -Art | tail -n 1 | xargs imagej --open 

还有一个 bug report 关于 github 上 cli(旧版)的开场图像的文件。如果上述建议不起作用,也许 post 那边的回复。