Bash globbing - autoexpand for a few specific cases?

前端 未结 6 1153
半阙折子戏
半阙折子戏 2020-12-29 13:05

I understand that the wildcard * (by itself) will expand in such a way that it means \"all non-hidden files in the current folder\" with hidden files being thos

6条回答
  •  渐次进展
    2020-12-29 14:03

    So, even though this is old - without using shopt, this doesn't seem to have been answered fully. But, expanding on what has been given as answers so far, these work for me:

    1:

    {*,.[!.]*,..?*}

    2:

    {.[!.]*,..?*}

提交回复
热议问题