help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing arbitrary line range from files


From: Lawrence Velázquez
Subject: Re: Printing arbitrary line range from files
Date: Mon, 28 Jun 2021 00:17:44 -0400
User-agent: Cyrus-JMAP/3.5.0-alpha0-530-gd0c265785f-fm-20210616.002-gd0c26578

On Sun, Jun 27, 2021, at 11:44 PM, lisa-asket@perso.be wrote:
> Does not function very well when I do
> 
> 
> 
> print-lines 5 8 .
> 
> 
> 
> print-lines ()
>   {
>     na=$1
>     nb=$2
>     dir=$3
> 
>     find "$dir" \( -name \*.org -o -name \*.texi \)  \
>       | xargs sed -n "$na,${nb}p"
>   }

You're going to have to be a lot more specific than "doesn't work".
What's some example input, and what output do you expect from it?

-- 
vq



reply via email to

[Prev in Thread] Current Thread [Next in Thread]