If I use a here document in a shell script that contains multiple backslashes \'\\\\\', the shell translates it into a single backslash. Can I work around this without chang
As an alternative to what Dennis mentions The command sed can also take care of this.
sed
sed 's/\\/\\\\/g' <<EOF Print \\hello \\world EOF
Quote the beginning here document marker:
cat <<'EOF' Print \\hello \\world EOF