BizTalk Blog by Chris Han

System Design for Enterprise Agility,

  Home  |   Contact  |   Syndication    |   Login
  68 Posts | 9 Stories | 175 Comments | 79 Trackbacks

News

Article Categories

Archives

Post Categories

Image Galleries

BizTalk Bloggers

BizTalk on MSDN

Patterns & Architecture

SharePoint

Monday, October 04, 2010 #

Sometimes I just need to search and replace to add the CR/LF at the end of each line. Here's the solution I find from other's post. List here for quick reference:

Notepad++.

  1. Open your text file in Notepad++. Then navigate to menu View > Show Symbols > Show all characters.
  2. Highlight one of those squares in your text, then copy it to clipboard.
  3. Press Ctrl+H.
  4. Inside "Find what:" textbox, paste (Ctrl+V).
  5. Inside "Replace with:", type \r\n
  6. In search options, choose "Extended (\r, \n, \t, \0, \x...)".
  7. Replace All.
  8. Verify that now you can see each line ends with CR LF box.
  9. Navigate to menu View > Show Symbols > uncheck show all characters.
  10. Save your file if all worked fine.

This is the original post by yusufat:

social.answers.microsoft.com/Forums/en-US/w7programs/thread/663f1293-9e83-4683-9534-ff4b60612dbf