full of … these

Save ‘less’ buffer to file

Posted: May 23rd, 2013 | Author: | Filed under: howto, linux | Tags: , | 1 Comment »

The site that originally hosted this useful trick is not accessible any more.

The original was at: http://kerneltrap.org/node/17043

Source of the text below is http://webcache.googleusercontent.com/search?q=cache:http://kerneltrap.org/node/17043&strip=1


to save the buffer that is being displayed by a session of `less’, use its pipe-to-shell-command capability by scrolling to the top of the file and press `|’ followed by `$’ as well as entering `tee DESTINATION_FILE’ when prompted for the shell command.


One Comment on “Save ‘less’ buffer to file”

  1. 1andresvia said at 8:36 pm on December 30th, 2016:

    This is probably the most useful “less” tip that I keep forgetting, thanks for posting this.

Leave a Reply