[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
- Printing arbitrary line range from files, lisa-asket, 2021/06/27
- Re: Printing arbitrary line range from files, Greg Wooledge, 2021/06/27
- Printing arbitrary line range from files, lisa-asket, 2021/06/27
- Re: Printing arbitrary line range from files,
Lawrence Velázquez <=
- Re: Printing arbitrary line range from files, Seth David Schoen, 2021/06/28
- Printing arbitrary line range from files, lisa-asket, 2021/06/28
- Re: Printing arbitrary line range from files, Greg Wooledge, 2021/06/28
- Printing arbitrary line range from files, lisa-asket, 2021/06/28
- Re: Printing arbitrary line range from files, Greg Wooledge, 2021/06/28
- Printing arbitrary line range from files, lisa-asket, 2021/06/28
- Re: Printing arbitrary line range from files, Greg Wooledge, 2021/06/28
- Re: Printing arbitrary line range from files, Dennis Williamson, 2021/06/28
- Re: Printing arbitrary line range from files, lisa-asket, 2021/06/28
- Re: Printing arbitrary line range from files, Lawrence Velázquez, 2021/06/28