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.