How to manipulate a string, variable in shell
- by user558134
Hei everyone!
I have this variable in shell containing paths separated by
a space:
LINE="/path/to/manipulate1 /path/to/manipulate2"
I want to add additional path string in the beginning of the string and as well right after the space so that the variable will have the result something like this:
LINE="/additional/path1/to/path/to/manipulate1 additional/path2/to/path/to/manipulate2"
Any help appreciated
Thanks in advance