in reply to OT: unable to use the options of echo in my shell terminal bash ofcourse

"\tcode" doesn't mean anything special in bash. To turn \t into a tab character, you have to use $'\t':
#! /bin/bash string=$'\tcode' echo "$string"
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: OT: unable to use the options of echo in my shell terminal bash ofcourse
by parv (Parson) on Sep 14, 2015 at 15:30 UTC

    x\ty works as expected in zsh 4.3.10; does not in /bin/sh (FreeBSD ash) & bash 4.3.42 as shown above.

    Then again I much prefer to use the command (/usr/bin/)printf, NOT the shell built-in, unless just writing one-off script on the command line.

      thanks every one i learned a lot of things from u guys
Re^2: OT unable to use the options of echo in my shell terminal bash ofcourse
by ramachandrajr (Novice) on Sep 16, 2015 at 14:31 UTC
    awesome i didn't even know that learned something today thank u