FOR(7) Miscellaneous Information Manual FOR(7)

foriterate over entries

module:for
for:[entries ...]
for-do{
	# automate block
}

The 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 ‘<’.

The directory path containing automate's config files and data.

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 -
	}
}

automate(1), venus-conf(5)

October 8, 2024 EltaninOS