Shell Commands/Clone

From MorphOS Library

< Shell Commands

Clone - Reads the standard input or a file and writes it to both standard output and a specified file

FROM/K, COPYTO=TO, APPEND/S, IGNOREBREAK/S

FROM        - File to read for the input
COPYTO      - File to write the output to
APPEND      - Appends the output to the existing file instead of writing over it
IGNOREBREAK - Ignores break signals sent to the process

This is a DOS-style implementation of the 'tee' command from Unix-like operating systems.