convert_dirtemplate2vm.sh 126 B

1234567891011
  1. #!/bin/sh
  2. SRC=$1
  3. DST=$2
  4. VMNAME=$3
  5. VMDIR=$4
  6. sed -e "s/%VMNAME%/$VMNAME/" \
  7. -e "s %VMDIR% $VMDIR " \
  8. <$SRC >$DST