4
1
How do I reverse the contents of a .txt file while preserving empty lines?
For example,
text one
text two
text three
text four
text five
text six
would become
text six
text five
text four
text three
text two
text one
Preferably with the Windows console or also source code to compile from to an application. I have Windows 7.
The tags were removed from your question for a reason. These tags are not useful and add nothing of value to your question. – Der Hochstapler – 2014-07-28T11:04:41.060
Some of the answers in Flip or reverse line order in Notepad++ ought to be here.
– Peter Mortensen – 2019-07-14T12:40:32.993(Replying to my own post since I can't post an answer with <10 reputation. Thanks for your replies!)
I found something: tac, which is part of CoreUtils for Windows. I just tested it and it's working fine for me.
Possible duplicate of How to reverse text file in Windows
– and31415 – 2014-05-01T12:50:45.7701
I even checked twice that I am not on http://codegolf.stackexchange.com/
– VL-80 – 2014-05-01T12:50:56.707