{"id":1085,"date":"2014-07-01T11:59:00","date_gmt":"2014-07-01T11:59:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2014\/07\/01\/powertip-use-custom-delimiter-with-csv-file\/"},"modified":"2014-07-01T11:59:00","modified_gmt":"2014-07-01T11:59:00","slug":"powertip-use-custom-delimiter-with-csv-file","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/powertip-use-custom-delimiter-with-csv-file\/","title":{"rendered":"PowerTip: Use Custom Delimiter with CSV File"},"content":{"rendered":"<p><b>Summary<\/b>: Use a custom delimiter with Windows PowerShell when reading a CSV file.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/q-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Question\" \/>&nbsp;Can I use a delimiter other than the comma (&nbsp;<b>,<\/b>&nbsp;) when reading from a CSV file?<\/p>\n<p style=\"margin-left:30px\"><b><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Answer\" \/>&nbsp;Import-CSV<\/b>&nbsp;has a parameter dedicated for this purpose called&nbsp;<b>-Delimiter<\/b>:<\/p>\n<p style=\"margin-left:90px\">Get-Help Import-Csv -ShowWindow<\/p>\n<p style=\"margin-left:120px\"><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/hsg-7-1-14-PT-1.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/hsg-7-1-14-PT-1.png\" alt=\"Image of Help file\" title=\"Image of Help file\" \/><\/a><\/p>\n<p style=\"margin-left:90px\">You can easily use this during the import:<\/p>\n<p style=\"margin-left:120px\"><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/hsg-7-1-14-PT-2.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/hsg-7-1-14-PT-2.png\" alt=\"Image of command output\" width=\"550\" height=\"112\" title=\"Image of command output\" \/><\/a><\/p>\n<p style=\"margin-left:120px\"><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/hsg-7-1-14-PT-3.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/hsg-7-1-14-PT-3.png\" alt=\"Image of command output\" title=\"Image of command output\" width=\"450\" height=\"152\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Use a custom delimiter with Windows PowerShell when reading a CSV file. &nbsp;Can I use a delimiter other than the comma (&nbsp;,&nbsp;) when reading from a CSV file? &nbsp;Import-CSV&nbsp;has a parameter dedicated for this purpose called&nbsp;-Delimiter: Get-Help Import-Csv -ShowWindow You can easily use this during the import:<\/p>\n","protected":false},"author":596,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[317,56,356,3,45],"class_list":["post-1085","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-gary-siepser","tag-guest-blogger","tag-powertip","tag-scripting-guy","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: Use a custom delimiter with Windows PowerShell when reading a CSV file. &nbsp;Can I use a delimiter other than the comma (&nbsp;,&nbsp;) when reading from a CSV file? &nbsp;Import-CSV&nbsp;has a parameter dedicated for this purpose called&nbsp;-Delimiter: Get-Help Import-Csv -ShowWindow You can easily use this during the import:<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/1085","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/596"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=1085"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/1085\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=1085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=1085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=1085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}