Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
无论大小写如何,我都想检查文件中的字符串。
斯汀是:
env=electron
如果文件 shell.txt 包含任何形式的给定字符串,无论大小写如何,这都必须显示匹配
示例 shell.txt
Electron electron ELECTRON ElEcTRon /* upper lower combination in any order have to chow matching */
我怎样才能做到这一点?
grep -i "electron" shell.txt
-i 用于忽略大小写..