Re: Feature request or advice on implementation for buffering command output

2019-04-08 Thread Greg Wooledge
On Fri, Apr 05, 2019 at 03:57:16PM -0700, L A Walsh wrote: > What would be wrong with doing something like: > > readarray -t last10< <(COMMAND |tail -10) > > That will put the last 10 lines of COMMAND_OUTPUT into > the array 'last10'. Now you can launch another command > to process that last

Re: Feature request or advice on implementation for buffering command output

2019-04-05 Thread L A Walsh
On 3/27/2019 12:49 AM, Anders Brujordet wrote: > Usecase: > You run a command, the output is displayed in your terminal. Now that you > see the output, you would like to grab say an ID from this output. Instead > of coping and pasting the output, I would like to be able to do something > like: > #

Re: Feature request or advice on implementation for buffering command output

2019-03-27 Thread Chet Ramey
On 3/27/19 3:49 AM, Anders Brujordet wrote: > Usecase: > You run a command, the output is displayed in your terminal. Now that you > see the output, you would like to grab say an ID from this output. Instead > of coping and pasting the output, I would like to be able to do something > like: > # gre

Re: Feature request or advice on implementation for buffering command output

2019-03-27 Thread Greg Wooledge
On Wed, Mar 27, 2019 at 12:49:45AM -0700, Anders Brujordet wrote: > Usecase: > You run a command, the output is displayed in your terminal. Now that you > see the output, you would like to grab say an ID from this output. Instead > of coping and pasting the output, I would like to be able to do som

Feature request or advice on implementation for buffering command output

2019-03-27 Thread Anders Brujordet
Usecase: You run a command, the output is displayed in your terminal. Now that you see the output, you would like to grab say an ID from this output. Instead of coping and pasting the output, I would like to be able to do something like: # grep 'the thing that you want' <<< ${COMMAND_OUTPUT} | ./so