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
  • 741,623
  • 53
  • 500
  • 612
BhishanPoudel
  • 15,974
  • 21
  • 108
  • 169

0 Answers0