Remove line breaks in Bourne Shell from variable

后端 未结 4 1785
猫巷女王i
猫巷女王i 2021-02-07 07:45

In bourne shell I have the following:

VALUES=`some command that returns multiple line values`

echo $VALUES

Looks like:

\"ONE\"         


        
4条回答
  •  深忆病人
    2021-02-07 07:58

    The accepted solution didn't work for me (on OS X Yosemite). This is what I used:

    echo -n $VALUES

提交回复
热议问题