On Mon, Jun 28, 2021 at 05:03:37AM +0200, lisa-asket@perso.be wrote:
> I want to print lines from files starting from line number "na" to line
> number "nb".https://mywiki.wooledge.org/BashFAQ/011
> Have written the following function, which uses head, but now want to extend
> it to use
>
> "sed" with "na" and "nb".
sed -n "$na,${nb}p"
(Various alternatives and optimizations are possible. See the FAQ page.)