【发布时间】:2012-05-21 10:24:17
【问题描述】:
如何列出一个文件夹的所有文件,但不列出其文件夹或子文件。换句话说:我怎样才能只列出文件?
【问题讨论】:
-
How to get the list of files in a directory in a shell script?、How to list files in directory using bash?、Shell script print out file names when given a folder、List files in current directory with full path using Bash、What expands to all files in current directory recursively?、Show files in current directory using Git Bash? 等可能重复
-
建议的副本似乎都没有实现省略目录的要求。
标签: bash file-listing