Is there a way to reverse the line order (considering \r\n line break) of a file using Notepad++?

Input:

Line 1
Line 2
Line 3

Required Output:

Line 3
Line 2
Line 1

Any plugin/macro is OK

link|improve this question
This is a good question. I couldn't find anything, but I did find a related question for reversing a single line which required a Python script. You may need to get a script for this. – JNK Sep 7 '10 at 14:58
feedback

2 Answers

Whatever... a simple use of the "tac" gnu utility did the trick :)

link|improve this answer
2  
And for those of us without tac? – fredley Mar 22 '11 at 22:20
downvoted because it wasn't notepad++ related. – Nick Sonneveld May 13 '11 at 0:17
feedback

Solution not requiring other software except normally-included TextFX plugin:

  1. Edit > Select All
  2. TextFX > TextFX Tools > Insert Line Numbers
  3. If TextFX > TextFX Tools > +Sort ascending is checked, uncheck it
  4. TextFX > TextFX Tools > Sort lines case sensitive (at column)
  5. TextFX > TextFX Tools > Delete Line Numbers or First Word
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.