SUN% echo -e 'at\tat'
Here is this command we would like to replace \t with - and print the line like : "at-at"
however the command seems to treat \t as t and replacing all t in at\tat and output even comes with "TAB" seperator:
SUN% echo -e 'at\tat' | sed -re 's/\t/-/g'
If I add the escape seperator then it treats \t and dosenot replace \t and pringts the same out put as echo command.
SUN% echo -e 'at\tat' | sed -re 's/\\t/-/g'
Attached are the two screenshots from two different consoles "ZSH and NSH outputs"
My search takes me to below references:
Can you try this?
echo 'at\tat'| sed 's/\'$'\t\/-/g'
This issue has been turned to a defect.