Saturday 22 December 2018

notepad++ - Transpose column to row


How do I convert code from a column:


1
2
3
4

to in a row (with spaces):


1 2 3 4

using Notepad++ ?



Answer



Select to suit, Search, Replace \r\n with 'space' (using Extended).


Notepad ++ puts a carriage return and a line feed at the end of each line (automatically when Enter is pressed). These can be displayed if Show All Characters is toggled (the pilcrow – ‘¶’, like a reversed P) and in Extended Mode accessed with \r for return and \n for new line. To substitute these two control codes with a space just place them in Find what : and hit Space in Replace with ::


SU598241 example


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...