Kaushal
2015-01-15 21:49:59 UTC
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 log location or open
that log in a chosen editor.
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.
Is it possible to do so?
Thanks.
--
Kaushal Modi
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 log location or open
that log in a chosen editor.
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.
Is it possible to do so?
Thanks.
--
Kaushal Modi