Skip to main content Module cut Copy item path Source CutConfig Configuration for cut operations. Range A range specification like 1, 3-5, -3, 4- CutMode Cut operation mode cut_bytes Cut bytes/chars from a line. Writes selected bytes to out.
Used by process_cut_reader (stdin path) and unit tests. cut_fields Cut fields from a line using a delimiter. Writes to out.
Returns true if any output was written, false if suppressed.
Used by process_cut_reader (stdin path) and unit tests. parse_ranges Parse a LIST specification like “1,3-5,7-” into ranges.
Each range is 1-based. Returns sorted, merged ranges. process_cut_data Process a full data buffer (from mmap or read) with cut operation.
Dispatches to optimized fast paths for field and byte modes. process_cut_reader Process input from a reader (for stdin).