0

I have tried so many variations to echo the following string:

![](../images/a.png)

my attempts

b="a.pdf"

$ echo -n  "![](../images/""${b%.*}.png")
-bash: ![]: event not found

$ echo -n  "\![](../images/""${b%.*}.png"\)
\![](../images/a.png)

How to get:

![](../images/a.png)
Barmar
  • 669,327
  • 51
  • 454
  • 560
BhishanPoudel
  • 1
  • 15
  • 87
  • 137

0 Answers0