Thanks!
tmux capture-pane -p -S 50 -E -50 -J >! /tmp/temp.txt
Above does the magic! :)
--
Kaushal Modi
On Thu, Jan 15, 2015 at 4:53 PM, Thomas Adam wrote:
> On 15 January 2015 at 21:49, Kaushal wrote:
> > But to begin with, I am unable to find a way to copy the last few lines
> of
> > the c
On 15 January 2015 at 21:49, Kaushal wrote:
> But to begin with, I am unable to find a way to copy the last few lines of
> the current pane history using a script.
capture-pane
-- Thomas Adam
--
New Year. New Location.
Hi,
Here is the use case.
After I run a certain program, at the end that program outputs something
like:
*Log location: /path/to/the/log/some_file_random_seed.txt*
I would like a write a little shell script to parse the last, let's say, 20
lines in the tmux history and be able to 'cd' to that l