Geeks With Blogs

BizTalk Blog by Chris Han System Design for Enterprise Agility,

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

Posted on Monday, October 4, 2010 12:46 PM BizTalk , SQL Server | Back to top


Comments on this post: Text Editor that can edit special characters such as CR/LF (Notepad++)

# re: Text Editor that can edit special characters such as CR/LF (Notepad++)
Requesting Gravatar...
I get a lot of unix files and use a different route with Notepad++.

Edit>EOL Conversion>Windows Format

would this be a better solution for you?
Left by S P on Oct 04, 2010 1:36 PM

# re: Text Editor that can edit special characters such as CR/LF (Notepad++)
Requesting Gravatar...
hello Yusufat...many thanks for good hint...works as expected..tomas
Left by tomas on May 03, 2011 6:42 AM

# re: Text Editor that can edit special characters such as CR/LF (Notepad++)
Requesting Gravatar...
Real thank !!!!
Left by bruno on Mar 04, 2012 4:30 PM

# re: Text Editor that can edit special characters such as CR/LF (Notepad++)
Requesting Gravatar...
Great!!!
Thanks.
Left by ROMMON on Sep 04, 2012 10:38 AM

# re: Text Editor that can edit special characters such as CR/LF (Notepad++)
Requesting Gravatar...
ur a star !!!!!!!!!
Left by bharat on Sep 25, 2012 9:12 AM

Your comment:
 (will show your gravatar)


Copyright © Chris Han | Powered by: GeeksWithBlogs.net