#!/usr/bin/env bash DIR=$(cd -P -- "$(dirname -- "$0")" && pwd -P)"/" TEXT=$(sed -e "/\/\/\/DATA\/\/\//{a \ \`$1\ \`,\n///DATA///" -e "d}" $2) if [ $? -ne 0 ]; then echo "Error in append.sh" exit 1; fi echo "$TEXT" > $2