treat is a unix utility for running different fields of the input through different filters. The nth field is run through the nth filter specified, cat is used for the rest of the line.
+-----> filter1 (1st input field)+----+
| |
+-------+ +---------------------+ + | +-----+ +------+
| input | | |treat filter1 filter2|--|+-----> filter2 (2nd input field)+---|---|paste| | |output|
+-------+ +---------------------+ + | +-----+ +------+
| |
+-----> cat (rest of the line)+-------+
Run calculations submitted by users from a colon-separated file.
treat -i : cat 'bc -l' <calcs
Factor the second input field, reverse the first:
treat rev factor
make install
for installation and
make uninstall
for deinstallation.
- A make implementation
- A C compiler
- A POSIX system, needed for execl(), fork(), getline(), mkdtemp(), mkfifo() and wait()
The MIT/X11 license. The incarcerate() function (previously unescape()) was taken from sbase libutil/unescape.c. For more, see SBLICENSE.