How to save the content of less into a file

Philip Thomas K.

05 July 20

Back

So when on earth would you ever need this? I have no idea, but I ran across this need recently when scrolling through reddit using rtv. I wanted to save a comment as text and rtv pipes the plaintext into less automatically for you to view. It was not obvious to me how to save the content to a file, I accidentally learned how to do so, by using s, and specifying a filename.

Isn’t that fun.

Best Regards,
Philip

Back