Consuming partially from a bash process substitution, suspending it and reading the rest from it in another function

Is there a way to consume only a part of the data from a Bash process substitution, suspend the process substitution and read the remaining data from it in another function. I would like to do it without storing the results into an intermediate file. I tried the obvious: store the process substitution in a variable and read from it, that did not work.


Source: bash

Leave a Reply