想查找一个包含4000多文件的目录下所有.sh结尾的文件

使用命令     find  ./ -name *.sh     (本身已经在要查找的目录里了)

结果报错: 执行find / -name *.sh时报错  find: 路径必须在表达式之前: start-ressvr-release.sh

 

解决方法一:find ./ -name \*.sh   (将.sh转义)

解决方法二:find ./ -name "*.sh"    

相关文章:

  • 2021-06-20
  • 2021-10-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
  • 2022-01-10
  • 2021-12-13
  • 2021-12-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
  • 2021-07-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案