globbing 文件名通配

globbing: 文件名通配

*:匹配任意长度的任意字符
?:匹配任意单个字符
[]:匹配指定范围内的任意单个字符
    有几种特殊格式:
        [a-z], [A-Z], [0-9], [a-z0-9] 
        [[:upper:]]: 所有大写字母
        [[:lower:]]: 所有小写字母
        [[:alpha:]]: 所有字母
        [[:digit:]]: 所有数字
        [[:alnum:]]: 所有的字母和数字
        [[:space:]]: 所有空白字符
        [[:punct:]]: 所有标点符号

[^]: 匹配指定范围外的任意单个字符

*列如

image_1b5cc53g4ervsjiqap187hc9.png-10.9kB 
?列如 
image_1b5cc80j7i7b1msn1vqu1s9q3srm.png-10.9kB 
[]列如 [a-z][A-Z]意思是匹配a-z任意单词,不区分大小写,[a-z]可以配置大写字母,[A-Z]也可以匹配小写字母,一个[]只能匹配一个字母 
image_1b5ccgsc612ci8ghrp7th01pm113.png-19.7kB 
[0-9] 匹配0到9任意单个数字 
image_1b5ccnu7q1h3gppn16ddslq16511g.png-8.3kB 
[a-z0-9] 匹配a-z的单个字母(不区分大小写)和0-9数字 
image_1b5cd05kfu9a1g88129j6o57v51t.png-10.4kB 
[[:upper:]]: 所有大写字母 
例如: 
image_1b5fns632jjt37qiri16kdke52a.png-6.5kB 
[[:lower:]]: 所有小写字母 
例如: 
image_1b5fo08b513bfh3iij1h3ua9l2n.png-7.2kB 
[[:alpha:]]: 所有字母 
例如: 
image_1b5fo2rat1tge1p4dj5l1cl610mr34.png-7kB 
[[:digit:]]: 所有数字 
例如: 
image_1b5fo41k61v8mhqs5p9f9v1luu3h.png-7.2kB 
[[:alnum:]]: 所有的字母和数字 
例如: 
image_1b5foabap1u891k09p6e91eerv3u.png-8.9kB 
[[:space:]]: 所有空白字符 
例如: 
image_1b5fombfnbqca8m1e3m1m3e133h4b.png-7.9kB 
[[:punct:]]: 所有标点符号 
image_1b5fonigv11k6mq9mk1bjq19c74o.png-9.5kB


例如:[^0-9]意思是只要不是0-9的数字都匹配,跟[^[:digit:]]效果一样,[^a-z]意思匹配字母以外所有字符,同样跟[^[:alpha:]]同意,*就是任意字符了 ,f  l是一个文件,中间有两个空格,也就是有四个字符,第一个是f中间两个字符是空格,最后一个字符是l,
image_1b5fpmi27tnc19531dpe1fbt1j0q55.png-4.6kB

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
checking whether the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking dependency style of g++... gcc3 checking how to run the C preprocessor... gcc -std=gnu11 -E checking for x86_64-w64-mingw32-ranlib... no checking for ranlib... ranlib checking for x86_64-w64-mingw32-dlltool... no checking for dlltool... no checking for x86_64-w64-mingw32-ar... no checking for x86_64-w64-mingw32-lib... no checking for x86_64-w64-mingw32-link... no checking for ar... ar checking the archiver (ar) interface... ar checking dependency style of gcc -std=gnu11... gcc3 checking for x86_64-w64-mingw32-as... no checking for as... as checking whether dlltool supports --temp-prefix... yes checking whether to build a w32api package for Cygwin... no checking whether to build the Win32 libraries... yes checking whether to build the Win64 libraries... yes checking whether to build the WinARM32 libraries... no checking whether to build the WinARM64 libraries... no checking whether to use genlib... no checking whether to enable globbing... no checking whether to enable private exports... no checking whether to enable delay import libs... no checking what to provide as libmsvcrt.a... msvcrt-os checking whether to include support for Control Flow Guard... no checking whether to enable experimental features... no checking whether the compiler supports -municode... no checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for _mingw_mac.h... no
最新发布
06-10

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值