shell 如何在bash中删除变量中字符串的初始点

9lowa7mx  于 2022-11-16  发布在  Shell
关注(0)|答案(1)|浏览(99)

我在bash中有一个名为myVar的变量,其值如下所示。

'./favicon.png' './inc/sendEmail.php' './index.html' './images/header-background.jpg'

注意:上面的代码是一个变量的值
我想通过删除每个路径的初始点将其更改为以下字符串

'/favicon.png' '/inc/sendEmail.php' '/index.html' '/images/header-background.jpg'

我不知道该怎么做。请帮帮我。

相关问题