使用 ls 命令隐藏不可执行文件

Using the ls command to hide non-executable files

我正在尝试使用一个命令来仅打印当前目录中按修改时间排序的不可执行文件。

我目前拥有的是:

$ ls -lt | grep -i "...x......"

这是打印目录中的所有文件。刚开始学习代码,任何帮助将不胜感激。

要走的路:

for file in *; do test -x "$file" || echo "$file"; done

感谢not parsing ls output