grep-chunk

grep-chunks

Print all lines after and/or until regexes are matched

$ seq 1 10 | grep-chunks --after 5
6
7
8
9
10
$ seq 1 10 | grep-chunks --until 5
1
2
3
4
$ seq 1 20 | ./grep-chunks -a '4$' -u '8$'
5
6
7
$ seq 1 20 | ./grep-chunks -a '4$' -u '8$' --alternate
5
6
7
15
16
17

Build

$ apt install libre2-dev
$ make
Repository

grep-chunk

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 0
  • almost 2 years ago
  • February 20, 2023
License

Links
Synced at

Sun, 22 Dec 2024 00:14:33 GMT

Languages