Issue
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 changing the text ?
$ cat <<EOF
> Print \\hello \\world
> EOF
Print \hello \world
Solution
Quote the beginning here document marker:
cat <<'EOF'
Print \\hello \\world
EOF
Answered By - Dennis Williamson Answer Checked By - Terry (WPSolving Volunteer)