bash get back interpreted escape string

前端 未结 0 1312
鱼传尺愫
鱼传尺愫 2020-12-24 05:03

Consider the following bash script

#!/usr/bin/env bash

tstring="Hi\\tThere"
istring=$(echo -e $tstring)
echo $istring   # Prints: Hi There
rstring=         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题