SEQ(7) | Miscellaneous Information Manual | SEQ(7) |
seq
— process
sequential blocks
module:seq seq:n seq-1{ # automate block } # ... seq-n{ # automate block }
seq
module processes a series of blocks
sequentially. It creates a chain of n entries, where
n is specified by the “seq” variable. For
each entry in the chain, the module invokes automate(1) to
process the corresponding block.
The blocks are processed in order from “seq-1” to
“seq-n
”.
AUTOMATE_ETC_DIR
The seq
utility exits 0 on success,
and >0 if an error occurs.
To build a file in steps:
#!/bin/automate -s default,c hello.c{ output:$3 module:seq seq:3 seq-1{ command:scripts/head.sh $1 } seq-2{ command:scripts/body.sh $1 } seq-3{ command:scripts/tail.sh $1 } }
October 8, 2024 | EltaninOS |