view bin/example/interpolate.sh @ 894:47d50c70ec04

no insert on home computer
author Jeff Hammel <k0scist@gmail.com>
date Tue, 06 Jul 2021 08:29:05 -0700
parents 565875bc93b7
children
line wrap: on
line source

#!/bin/bash

if [ "$#" == "0" ]
then
    echo "Usage: $0 file [file] [...]"
    exit 1
fi

for arg in "$@"
do
    eval "cat <<EOF
$(<$arg)
EOF
" 2> /dev/null
done