I have a script that is going to be executed by sh and bash on Debian Linux.
- When it is called by
sh, the following echo command works perfectly, and replaces\twith 3 spaces. However, it fails when using#!/bin/bash.
Output#/bin/sh echo "Hello\tworld"Hello world - When it is called by
bash, the following echo command works perfectly, and replaces\twith 3 spaces. However, it fails when run with#/bin/sh.
Output#/bin/bash echo -e "Hello\tworld"Hello world
Is there any way where the same line command to replace \t sh or bash?