We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f3c94a commit 5182ef3Copy full SHA for 5182ef3
scripts/character_count.bat
@@ -0,0 +1,12 @@
1
+@ECHO OFF
2
+SET "inputFile=.\ems_translations.csv"
3
+powershell -NoLogo -NoProfile -Command ^
4
+ "$counter = 0;" ^
5
+ "Get-Content -Path '%inputFile%' |" ^
6
+ "ForEach-Object {" ^
7
+ "$counter++;" ^
8
+ "$ns = $_ -replace ';','';" ^
9
+ "if (($_.Length - $ns.Length) -ne 11) {" ^
10
+ "'Iteration {0}: Length is {1}' -f $counter, ($_.Length - $ns.Length)" ^
11
+ "}" ^
12
+ "}"
0 commit comments