#!/bin/bash find . -name "*.template" | while read -r f do echo -e "$f \t=> ${f%.template}" (. .env && eval "echo \"$(cat $f)\"") > ${f%.template} done