📜  循环中的 Bash dir - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:42.845000             🧑  作者: Mango

代码示例2
mkdir /tmp/A /tmp/B /tmp/C "/tmp/ dir with spaces"
for file in /tmp/*/ ; do file="${file%/}"; echo "${file##*/}"; done