How to preserve indentation in Linux bash shell?

There are different ways you can preserve indentation in Linux bash shell. Below is a simple example of preserving indentation while writing to a file or saving to a variable in Linux bash shell.

Leave a Reply