The one true way to print any arbitrary string:
printf "%s" "$vars"
More Related Contents:
- What does 2>&1 mean here?
- How to reload .bashrc settings without logging out and back in again?
- How do I iterate over a range of numbers defined by variables in Bash?
- When do we need curly braces around shell variables?
- How to manually expand a special variable (ex: ~ tilde) in bash
- Accessing bash command line args $@ vs $*
- Bash command line and input limit
- Replace one substring for another string in shell script
- How can I escape a double quote inside double quotes?
- Tilde in path doesn’t expand to home directory
- When are square brackets required in a Bash if statement?
- Bash syntax error: unexpected end of file
- How to assign the output of a Bash command to a variable? [duplicate]
- Is there a TRY CATCH command in Bash
- Parsing variables from config file in Bash
- Bash check shows file exists for non-existent files?
- Bash variables with spaces
- find: missing argument to -exec
- Retrieving multiple arguments for a single option using getopts in Bash
- grep for expression containing variable
- Connect to sqlplus in a shell script and run SQL scripts
- How do I pass on script arguments that contain quotes/spaces?
- Convert seconds to hours, minutes, seconds
- How to check if running as root in a bash script
- Print a file’s last modified date in Bash
- How to escape the single quote character in an ssh / remote bash command?
- Returning a boolean from a Bash function
- Capture multiline output as array in bash [duplicate]
- Parallel wget in Bash [duplicate]
- for loop for multiple extension and do something with each file