Replacing End of Line

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 “needed changes” 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.

The new lines appeared fine in Notepad++ but not Notepad.

I tried playing with the EOL conversion (Windows to Unix) but that removed all the lines.

Then it dawned on me. The \n is what one uses for Unix. I needed to use \n\r for Windows.

Obviously I have been out of Windows too long.

from Rants, Raves, and Rhetoric v4Rants, Raves, and Rhetoric v4 »


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s