Last active
January 3, 2018 19:46
-
-
Save royashbrook/a609a8e590931378268c57869ec00d51 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Import CSV, dynamically generate column names | |
Import-Csv -Header (00..( (gc file.csv)[0].split(",").Count-1 )|%{"c{0}" -f $_}) -Path file.csv | |
#ternary | |
@('false','true')[$true] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment