Bash globbing - autoexpand for a few specific cases?

前端 未结 6 1146
半阙折子戏
半阙折子戏 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:04

    Combining sth and pavium answers

    # dot files but avoiding . and ..
    .[!.]*
    
    # all files but avoiding . and .. 
    {.[!.]*,*}
    

提交回复
热议问题