Answer by yeti for "cat" command: how to automatically escape everything that...
Compare the two here documents in the following example: (yeti@darkstar:6)~/wrk/tmp$ cat ./xyzzy #!/bin/bash cat << EOF Version 1 - Today is $(date) EOF cat << 'EOF' Version 2 - Today is...
View ArticleAnswer by Michael Homer for "cat" command: how to automatically escape...
Use quotes around the "EOF" string: cat > /test <<'EOF' stuff $(pwd) EOF outputs stuff $(pwd) literally. See the bash manual on heredocs. Any quotes in the terminator string prevent any...
View Article"cat" command: how to automatically escape everything that might be a violation?
If you copy the contents of httpd.conf and then paste it into a cat command.. such as this one.. #!/bin/bash cat > /test << EOF pasted here.. EOF you run into this error: -bash: command...
View Article
More Pages to Explore .....