Powershell GUI fronted (WPF) to run categorized console scripts

⌈⌋ branch:  ClickyColoury


Artifact Content

Artifact d5d0aeb17241801a4a460e082ce964a842a322f4:

  • File dev/cleanCRCRLF.ps1 — part of check-in [bec07bd1d8] at 2018-04-22 19:36:23 on branch trunk — text file fixup (evil Notepad!!) (user: mario size: 315)

# api: cli
# title: clean CRCRLF occurences

Param ($fullname)

$src = [System.IO.File]::ReadAllText($fullname)

if ($src -match "\r\r+\n") {
    Write-Host -f Red $fullname
    $src = $src -replace "\r\r+\n","`r`n"
    [System.IO.File]::WriteAllText($fullname, $src, [System.Text.Encoding]::UTF8)
}