Bash - Template

Bash Liste Des Attaques Ovh

About

Template functionality with bash.

Method

HereDoc

with here_document

#!/bin/bash

for FILE_NAME in ./test/*.xml; do
    ABSOLUTE_PATH=$(realpath "${FILE_NAME}")
    cat >conf.xml <<EOF
<?xml>
<root>
	<project name="project">
		<workflow name="wf1">
			<parameter name ="sourcefilename">${ABSOLUTE_PATH}</parameter>
		</workflow>
	</project>
</root>
EOF
done

Envsubst utility

See envsubst







Share this page:
Follow us:
Task Runner