linux - 递归执行不带 -R 的命令 ls

标签 linux bash unix

我正在尝试找到一种方法来重新创建 ls -R 的输出(linux) 不使用选项 -R即没有递归命令,这可能吗?

没有其他限制。

最佳答案

shopt -s globstar nullglob
printf "%s\n" **

find .

关于linux - 递归执行不带 -R 的命令 ls,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19826479/

相关文章:

c - 在 pthread 中使用 setstacksize 函数设置堆栈大小的限制是多少?

c - 'rectype' 中的 '__STRUCT_KFIFO_COMMON' 的用途是什么?我应该如何理解这个宏?

linux - 通过 crontab 运行时为 "gcloud command not found"

bash - ksh 上的 pushd/popd?

linux - 如何从列表中删除除其他特定模式文件之外的某些模式文件?

bash - 替换除字母以外的所有内容

bash - UNIX 导出命令

c - Linux内核模块编译

linux - 分析 Linux 内核模块

linux - Ubuntu 终端打开文件后挂起