How can I get rid of unnecessary slashes in a given path?
Example:
p=\"/foo//////bar///hello/////world\"
I want:
p=\"/f
Thanks for the replys. I know the path works fine. I just want this for optical reasons.
I found another solution: echo $p | replace '//' ''
echo $p | replace '//' ''