FOR(7) | Miscellaneous Information Manual | FOR(7) |
for
— iterate over
entries
module:for for:[entries ...] for-do{ # automate block }
for
module invokes automate(1) to
process the “for-do” block for each entry specified on the
“for” variable. The current entry being processed can be
accessed using the variable ‘<’.
AUTOMATE_ETC_DIR
The for
utility exits 0 on success,
and >0 if an error occurs.
To concatenate multiple files:
#!/bin/automate -s default,c program:hello hello.c{ output:$3 module:for for{ hello-head.c hello-body.c hello-tail.c } for-do{ input:${<} command:cat - } }
October 8, 2024 | EltaninOS |