-1

How can I print out this: A "B" C. I use: echo A "B" C it will print out A B C but I want "B" not B. Do you guys have any idea?

Si Dang
  • 49
  • 1
  • 7
  • 5
    Possible duplicate of [print double quotes in shell programming](https://stackoverflow.com/questions/18929149/print-double-quotes-in-shell-programming) – Benjamin W. Sep 15 '19 at 20:25
  • and [Echo but retain double quotes](https://stackoverflow.com/q/15930323/3266847) – Benjamin W. Sep 15 '19 at 20:27

2 Answers2

1

Try printing like this echo A \"B\" C

1

try printing it like this .

echo 'A "B" C'
0xeg0
  • 17
  • 1
  • 7