Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 632 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 632 Bytes

heavi

heavi is a CLI utility to make text filtering up until a point easier. It is named after the Heaviside step function.

Use cases

  • print a file starting at a matched line
  • print a file until a matched line
  • print a file starting at a match
  • print a file until a match

Examples

$ seq 5 | heavi 3
4
5

$ seq 5 | heavi -v 3
1
2

Flags

Flag Description
-v Invert the Heaviside function; Output the file up until the match
-b Byte mode; Byte processing instead of line processing
-i Inclusive; Output the match in addition to other output