Skip to content

Instantly share code, notes, and snippets.

@maravedi
Created May 17, 2021 16:52
Show Gist options
  • Select an option

  • Save maravedi/a7769d10f11e6090f7866db8d6039c6b to your computer and use it in GitHub Desktop.

Select an option

Save maravedi/a7769d10f11e6090f7866db8d6039c6b to your computer and use it in GitHub Desktop.

Revisions

  1. maravedi created this gist May 17, 2021.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    Get-Content .\main.yml | Where-Object { $_ -and ($_ -notmatch "^\s*(\-|#)" )} | Foreach-Object { ($_ -Split ": ") -Join ','} | ConvertFrom-CSV -Header Name, DefaultVaue | ConvertTo-CSV