{"id":71,"date":"2013-08-12T16:07:47","date_gmt":"2013-08-12T14:07:47","guid":{"rendered":"http:\/\/ps.stefanrehwald.de\/?p=71"},"modified":"2013-08-12T16:07:47","modified_gmt":"2013-08-12T14:07:47","slug":"powershell-zeilenumbruch-neue-zeile","status":"publish","type":"post","link":"https:\/\/ps.stefanrehwald.de\/?p=71","title":{"rendered":"PowerShell &#8211; Zeilenumbruch, neue Zeile"},"content":{"rendered":"<p>F\u00fcr einen Zeilenumbruch, also eine neue Zeile in einem String oder in einer Ausgabe in einem Textfile, gibt es folgende M\u00f6glichkeit dies zu realisieren.<\/p>\n<pre class=\"lang:ps decode:true\" title=\"Zeilenumbruch Script\">[System.Environment]::NewLine\r\n\r\n# Zeilenumbruch einer Variable zuweisen\r\n$nl = [System.Environment]::NewLine<\/pre>\n<p>&nbsp;<\/p>\n<p>rewe<\/p>\n","protected":false},"excerpt":{"rendered":"<p>F\u00fcr einen Zeilenumbruch, also eine neue Zeile in einem String oder in einer Ausgabe in einem Textfile, gibt es folgende M\u00f6glichkeit dies zu realisieren. [System.Environment]::NewLine # Zeilenumbruch einer Variable zuweisen $nl = [System.Environment]::NewLine &nbsp; rewe<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[2,9],"tags":[86,91,83,92,87,88,89,93,90,85,94,84],"class_list":["post-71","post","type-post","status-publish","format-standard","hentry","category-powershell","category-snippet","tag-absatz","tag-absatz-string","tag-neue-zeile","tag-neue-zeile-string","tag-neuer-absatz","tag-new-line","tag-newline","tag-string","tag-system-enviroment","tag-umbruch","tag-zeilen-umbruch","tag-zeilenumbruch"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Einen Absatz im String erzeugen.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Stefan Rehwald\"\/>\n\t<meta name=\"keywords\" content=\"neue zeile,zeilenumbruch,umbruch,absatz,neuer absatz,new line,newline,system enviroment,absatz string,neue zeile string,zeilen umbruch,string,neue zeile string,zeilen umbruch\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/ps.stefanrehwald.de\/?p=71\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"de_DE\" \/>\n\t\t<meta property=\"og:site_name\" content=\"PowerShell Scripts | Eine Sammlung von PowerShell Snippets\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Eine Neue Zeile in einem String erzeugen. | PowerShell Scripts\" \/>\n\t\t<meta property=\"og:description\" content=\"Einen Absatz im String erzeugen.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/ps.stefanrehwald.de\/?p=71\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2013-08-12T14:07:47+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2013-08-12T14:07:47+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Eine Neue Zeile in einem String erzeugen. | PowerShell Scripts\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Einen Absatz im String erzeugen.\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?p=71#article\",\"name\":\"Eine Neue Zeile in einem String erzeugen. | PowerShell Scripts\",\"headline\":\"PowerShell &#8211; Zeilenumbruch, neue Zeile\",\"author\":{\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?author=2#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/#organization\"},\"datePublished\":\"2013-08-12T16:07:47+02:00\",\"dateModified\":\"2013-08-12T16:07:47+02:00\",\"inLanguage\":\"de-DE\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?p=71#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?p=71#webpage\"},\"articleSection\":\"PowerShell, Snippet, Absatz, Absatz String, Neue Zeile, Neue Zeile String, neuer Absatz, New Line, NewLine, String, System Enviroment, Umbruch, Zeilen Umbruch, Zeilenumbruch\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?p=71#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ps.stefanrehwald.de\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?cat=2#listItem\",\"name\":\"PowerShell\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?cat=2#listItem\",\"position\":2,\"name\":\"PowerShell\",\"item\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?cat=2\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?cat=9#listItem\",\"name\":\"Snippet\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?cat=9#listItem\",\"position\":3,\"name\":\"Snippet\",\"item\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?cat=9\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?p=71#listItem\",\"name\":\"PowerShell &#8211; Zeilenumbruch, neue Zeile\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?cat=2#listItem\",\"name\":\"PowerShell\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?p=71#listItem\",\"position\":4,\"name\":\"PowerShell &#8211; Zeilenumbruch, neue Zeile\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?cat=9#listItem\",\"name\":\"Snippet\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/#organization\",\"name\":\"PowerShell Scripts\",\"description\":\"Eine Sammlung von PowerShell Snippets\",\"url\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?author=2#author\",\"url\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?author=2\",\"name\":\"Stefan Rehwald\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?p=71#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/00349957f89eb7edc5bfe4e8d19b2198e56cb63116c2a4ac8ba0e6b8b8b75451?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Stefan Rehwald\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?p=71#webpage\",\"url\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?p=71\",\"name\":\"Eine Neue Zeile in einem String erzeugen. | PowerShell Scripts\",\"description\":\"Einen Absatz im String erzeugen.\",\"inLanguage\":\"de-DE\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?p=71#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?author=2#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/?author=2#author\"},\"datePublished\":\"2013-08-12T16:07:47+02:00\",\"dateModified\":\"2013-08-12T16:07:47+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/#website\",\"url\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/\",\"name\":\"PowerShell Scripts\",\"description\":\"Eine Sammlung von PowerShell Snippets\",\"inLanguage\":\"de-DE\",\"publisher\":{\"@id\":\"https:\\\/\\\/ps.stefanrehwald.de\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Eine Neue Zeile in einem String erzeugen. | PowerShell Scripts","description":"Einen Absatz im String erzeugen.","canonical_url":"https:\/\/ps.stefanrehwald.de\/?p=71","robots":"max-image-preview:large","keywords":"neue zeile,zeilenumbruch,umbruch,absatz,neuer absatz,new line,newline,system enviroment,absatz string,neue zeile string,zeilen umbruch,string,neue zeile string,zeilen umbruch","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ps.stefanrehwald.de\/?p=71#article","name":"Eine Neue Zeile in einem String erzeugen. | PowerShell Scripts","headline":"PowerShell &#8211; Zeilenumbruch, neue Zeile","author":{"@id":"https:\/\/ps.stefanrehwald.de\/?author=2#author"},"publisher":{"@id":"https:\/\/ps.stefanrehwald.de\/#organization"},"datePublished":"2013-08-12T16:07:47+02:00","dateModified":"2013-08-12T16:07:47+02:00","inLanguage":"de-DE","mainEntityOfPage":{"@id":"https:\/\/ps.stefanrehwald.de\/?p=71#webpage"},"isPartOf":{"@id":"https:\/\/ps.stefanrehwald.de\/?p=71#webpage"},"articleSection":"PowerShell, Snippet, Absatz, Absatz String, Neue Zeile, Neue Zeile String, neuer Absatz, New Line, NewLine, String, System Enviroment, Umbruch, Zeilen Umbruch, Zeilenumbruch"},{"@type":"BreadcrumbList","@id":"https:\/\/ps.stefanrehwald.de\/?p=71#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/ps.stefanrehwald.de#listItem","position":1,"name":"Home","item":"https:\/\/ps.stefanrehwald.de","nextItem":{"@type":"ListItem","@id":"https:\/\/ps.stefanrehwald.de\/?cat=2#listItem","name":"PowerShell"}},{"@type":"ListItem","@id":"https:\/\/ps.stefanrehwald.de\/?cat=2#listItem","position":2,"name":"PowerShell","item":"https:\/\/ps.stefanrehwald.de\/?cat=2","nextItem":{"@type":"ListItem","@id":"https:\/\/ps.stefanrehwald.de\/?cat=9#listItem","name":"Snippet"},"previousItem":{"@type":"ListItem","@id":"https:\/\/ps.stefanrehwald.de#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/ps.stefanrehwald.de\/?cat=9#listItem","position":3,"name":"Snippet","item":"https:\/\/ps.stefanrehwald.de\/?cat=9","nextItem":{"@type":"ListItem","@id":"https:\/\/ps.stefanrehwald.de\/?p=71#listItem","name":"PowerShell &#8211; Zeilenumbruch, neue Zeile"},"previousItem":{"@type":"ListItem","@id":"https:\/\/ps.stefanrehwald.de\/?cat=2#listItem","name":"PowerShell"}},{"@type":"ListItem","@id":"https:\/\/ps.stefanrehwald.de\/?p=71#listItem","position":4,"name":"PowerShell &#8211; Zeilenumbruch, neue Zeile","previousItem":{"@type":"ListItem","@id":"https:\/\/ps.stefanrehwald.de\/?cat=9#listItem","name":"Snippet"}}]},{"@type":"Organization","@id":"https:\/\/ps.stefanrehwald.de\/#organization","name":"PowerShell Scripts","description":"Eine Sammlung von PowerShell Snippets","url":"https:\/\/ps.stefanrehwald.de\/"},{"@type":"Person","@id":"https:\/\/ps.stefanrehwald.de\/?author=2#author","url":"https:\/\/ps.stefanrehwald.de\/?author=2","name":"Stefan Rehwald","image":{"@type":"ImageObject","@id":"https:\/\/ps.stefanrehwald.de\/?p=71#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/00349957f89eb7edc5bfe4e8d19b2198e56cb63116c2a4ac8ba0e6b8b8b75451?s=96&d=mm&r=g","width":96,"height":96,"caption":"Stefan Rehwald"}},{"@type":"WebPage","@id":"https:\/\/ps.stefanrehwald.de\/?p=71#webpage","url":"https:\/\/ps.stefanrehwald.de\/?p=71","name":"Eine Neue Zeile in einem String erzeugen. | PowerShell Scripts","description":"Einen Absatz im String erzeugen.","inLanguage":"de-DE","isPartOf":{"@id":"https:\/\/ps.stefanrehwald.de\/#website"},"breadcrumb":{"@id":"https:\/\/ps.stefanrehwald.de\/?p=71#breadcrumblist"},"author":{"@id":"https:\/\/ps.stefanrehwald.de\/?author=2#author"},"creator":{"@id":"https:\/\/ps.stefanrehwald.de\/?author=2#author"},"datePublished":"2013-08-12T16:07:47+02:00","dateModified":"2013-08-12T16:07:47+02:00"},{"@type":"WebSite","@id":"https:\/\/ps.stefanrehwald.de\/#website","url":"https:\/\/ps.stefanrehwald.de\/","name":"PowerShell Scripts","description":"Eine Sammlung von PowerShell Snippets","inLanguage":"de-DE","publisher":{"@id":"https:\/\/ps.stefanrehwald.de\/#organization"}}]},"og:locale":"de_DE","og:site_name":"PowerShell Scripts | Eine Sammlung von PowerShell Snippets","og:type":"article","og:title":"Eine Neue Zeile in einem String erzeugen. | PowerShell Scripts","og:description":"Einen Absatz im String erzeugen.","og:url":"https:\/\/ps.stefanrehwald.de\/?p=71","article:published_time":"2013-08-12T14:07:47+00:00","article:modified_time":"2013-08-12T14:07:47+00:00","twitter:card":"summary","twitter:title":"Eine Neue Zeile in einem String erzeugen. | PowerShell Scripts","twitter:description":"Einen Absatz im String erzeugen."},"aioseo_meta_data":{"post_id":"71","title":"Eine Neue Zeile in einem String erzeugen. | #site_title","description":"Einen Absatz im String erzeugen.","keywords":[{"label":"Neue Zeile","value":"Neue Zeile"},{"label":"Zeilenumbruch","value":"Zeilenumbruch"},{"label":"Umbruch","value":"Umbruch"},{"label":"Absatz","value":"Absatz"},{"label":"neuer Absatz","value":"neuer Absatz"},{"label":"New Line","value":"New Line"},{"label":"NewLine","value":"NewLine"},{"label":"System Enviroment","value":"System Enviroment"},{"label":"Absatz String","value":"Absatz String"},{"label":"Neue Zeile String,Zeilen Umbruch","value":"Neue Zeile String,Zeilen Umbruch"},{"label":"String","value":"String"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-30 00:57:17","updated":"2025-10-06 08:58:46","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/ps.stefanrehwald.de\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/ps.stefanrehwald.de\/?cat=2\" title=\"PowerShell\">PowerShell<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/ps.stefanrehwald.de\/?cat=9\" title=\"Snippet\">Snippet<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tPowerShell \u2013 Zeilenumbruch, neue Zeile\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/ps.stefanrehwald.de"},{"label":"PowerShell","link":"https:\/\/ps.stefanrehwald.de\/?cat=2"},{"label":"Snippet","link":"https:\/\/ps.stefanrehwald.de\/?cat=9"},{"label":"PowerShell &#8211; Zeilenumbruch, neue Zeile","link":"https:\/\/ps.stefanrehwald.de\/?p=71"}],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3N2Ht-19","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ps.stefanrehwald.de\/index.php?rest_route=\/wp\/v2\/posts\/71","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ps.stefanrehwald.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ps.stefanrehwald.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ps.stefanrehwald.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ps.stefanrehwald.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=71"}],"version-history":[{"count":2,"href":"https:\/\/ps.stefanrehwald.de\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions"}],"predecessor-version":[{"id":90,"href":"https:\/\/ps.stefanrehwald.de\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions\/90"}],"wp:attachment":[{"href":"https:\/\/ps.stefanrehwald.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ps.stefanrehwald.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ps.stefanrehwald.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}