#!/usr/bin/env bash : ${1?"Aufruf: $0 "} while read line; do escapedLine=$(echo $line | sed 's/\([$\"`]\)/\\\1/g') echo "echo -e \"$escapedLine\"" done < $1