Advertisement
metalx1000

quotes

Feb 24th, 2015
588
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.34 KB | None | 0 0
  1. echo """
  2. this is a test
  3. test test
  4. """
  5.  
  6. is the same as this
  7.  
  8. echo "
  9. this is a test
  10. test test
  11. "
  12.  
  13. it works, but will cause problems when quotes are present
  14. example:
  15.  
  16. echo "
  17. she said, "what is that?"
  18. "
  19.  
  20. which will not through an error, but you will loose your quotes.
  21. output:
  22. she said, what is that?
  23.  
  24. so EOF style is probably better.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement