在Linux中使用find命令尝试匹配文件名时忽略大小写 [英] Ignore case when trying to match file names using find command in Linux

查看:536
本文介绍了在Linux中使用find命令尝试匹配文件名时忽略大小写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,我所知道的是:

find / -name string.*

区分大小写,并且找不到名为:

that is case sensitive and it won't find files named:

1string.x
STRing.x
string1.x

如何进行搜索,以便以上所有内容在搜索时返回不区分大小写的匹配项?

How can I search so that all the above would be returned in the search to a case-insensitive matching?

推荐答案

或者您可以使用find / | grep -i string

这篇关于在Linux中使用find命令尝试匹配文件名时忽略大小写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆