{"id":7775,"date":"2013-07-08T14:03:58","date_gmt":"2013-07-08T18:03:58","guid":{"rendered":"http:\/\/www.ezrasf.com\/wplog\/?p=7775"},"modified":"2013-07-05T14:24:28","modified_gmt":"2013-07-05T18:24:28","slug":"replacing-end-of-line","status":"publish","type":"post","link":"https:\/\/www.ezrasf.com\/wplog\/2013\/07\/08\/replacing-end-of-line\/","title":{"rendered":"Replacing End of Line"},"content":{"rendered":"<p>I copied the lines of a script a coworker noted in our wiki into Notepad++. The needed changes were made for the school I want to run this against. The content was pasted into Notepad (not ++) on the server (through RDC). One of the &#8220;needed changes&#8221; was adjusting the line formatting so the commands for each server are separated by a two lines not one. I used \\n to add new lines.<\/p>\n<p>The new lines appeared fine in Notepad++ but not Notepad.<\/p>\n<p>I tried playing with the EOL conversion (Windows to Unix) but that removed all the lines.<\/p>\n<p>Then it dawned on me. The \\n is what one uses for Unix. I needed to use \\n\\r for Windows.<\/p>\n<p>Obviously I have been out of Windows too long.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I copied the lines of a script a coworker noted in our wiki into Notepad++. The needed changes were made for the school I want to run this against. The content was pasted into Notepad (not ++) on the server (through RDC). One of the &#8220;needed changes&#8221; was adjusting the line formatting so the commands [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","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_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[621],"tags":[2607],"class_list":["post-7775","post","type-post","status-publish","format-standard","hentry","category-microsoft","tag-posted-2013"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1rUBW-21p","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/posts\/7775","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/comments?post=7775"}],"version-history":[{"count":0,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/posts\/7775\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/media?parent=7775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/categories?post=7775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/tags?post=7775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}