Every so often I need to take a subset of a log file and save it into a file for later use.I use less a lot to view and search within the logs and for exporting the interesting part, I currently do the following:in less show the line numbers and note down the line range I needback on the cli, using sed I extract the range I need and save this into a fileIs it possible to do this from within less, i.e. without the sed part?
How to export a subset of a 'less' output
logs;less