Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/unix/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用powershell区分大写字符_Powershell_Csv_Character - Fatal编程技术网

使用powershell区分大写字符

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

我有一个powershell脚本,需要在其中替换以下字符:

Ä=Ae,ä=Ae,Ö=Oe,ö=Oe,Ü=Ue,ü=Ue

但是如果我运行脚本,Powershell不会区分大写字母和小写字母


有人知道如何解决此问题吗?

在PowerShell中,您可以使用
-ceq
而不是
-eq
执行区分大小写的比较:

'Ö' -eq 'ö'
True

'Ö' -ceq 'ö'
False
另见: