GitHub Project ted: A Turing Machine-based File Editor
2024-12-18
ted is a command-line tool written in Go that allows users to edit files according to the rules of a provided Turing machine. Inspired by the author's need to process log files, ted uses state machines to precisely extract the desired information. It supports various operations, including regular expression matching, sed command execution, variable assignment, capture and output control, and offers features such as multi-line capture, regex capture groups, and file head/tail movement.