#!/bin/sh test -n "$1" || { echo "usage: a-text "; exit; } str="$1" test -f "$str" && str="$(cat "$1" | sed ':a;N;$!ba;s/\n/\\n/g' )" # escape linebreaks echo "" >> /root/index.html