使用powershell区分大写字符
我有一个powershell脚本,需要在其中替换以下字符: Ä=Ae,ä=Ae,Ö=Oe,ö=Oe,Ü=Ue,ü=Ue 但是如果我运行脚本,Powershell不会区分大写字母和小写字母使用powershell区分大写字符,powershell,csv,character,Powershell,Csv,Character,我有一个powershell脚本,需要在其中替换以下字符: Ä=Ae,ä=Ae,Ö=Oe,ö=Oe,Ü=Ue,ü=Ue 但是如果我运行脚本,Powershell不会区分大写字母和小写字母 有人知道如何解决此问题吗?在PowerShell中,您可以使用-ceq而不是-eq执行区分大小写的比较: 'Ö' -eq 'ö' True 'Ö' -ceq 'ö' False 另见:
有人知道如何解决此问题吗?在PowerShell中,您可以使用
-ceq
而不是-eq
执行区分大小写的比较:
'Ö' -eq 'ö'
True
'Ö' -ceq 'ö'
False
另见: