[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Printing arbitrary line range from files
From: |
lisa-asket |
Subject: |
Printing arbitrary line range from files |
Date: |
Mon, 28 Jun 2021 05:03:37 +0200 (CEST) |
I want to print lines from files starting from line number "na" to line number
"nb".
Have written the following function, which uses head, but now want to extend it
to use
"sed" with "na" and "nb".
headrc ()
{
find "$2" \( -name \*.org -o -name \*.texi \) \
| xargs head -n "$1";
}
- Printing arbitrary line range from files,
lisa-asket <=
- 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, 2021/06/28
- 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