15.6. Conclusion

Getting tripped up with quoting is a common problem. I use these two rules when using quotes:

  1. Always use double quotes to echo strings; do not use the echo by itself.

  2. If you do not get the desired results using a quote, try another one; after all there are only three different types of quotes.

Get Linux and Unix Shell Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.