Sample Header Ad - 728x90

How to remove duplicate slashes from path to a file?

2 votes
5 answers
435 views
I have a path to a file that has duplicate slashes which would like to simplify. For example, if I have the following:
/opt//bin//executable
I would like to get:
/opt/bin/executable
Asked by Thesevs SCUTULATUS (23 rep)
May 21, 2024, 08:43 PM
Last activity: Jun 20, 2024, 07:56 PM