小编use*_*132的帖子

与 find 中参数 -name 匹配的值一起使用的双引号

为什么要与参数匹配的值-namefind必须用双引号标记?

# find / -type f -name *.out |wc -l 1>mv.out                                  
0403-027 The parameter list is too long.
# cat mv.out                                                   
       0
# find / -type f -name "*.out" |wc -l 1>mv.out                                   
# cat mv.out                                                                                           
  146302
Run Code Online (Sandbox Code Playgroud)

shell

-2
推荐指数
1
解决办法
55
查看次数

标签 统计

shell ×1