I got a string 'path' (see below)
path = "/home/abcd/public_html/a.cgi"
How to filter 'a.cgi' from the 'path' string?
My espected value should be "/home/abcd/public_html/".
Another word, how to copy the string from the last '/' ?
I don't want 'a.cgi' or 'b.cgi' etc from this new
value.
Thank.
path = "/home/abcd/public_html/a.cgi"
How to filter 'a.cgi' from the 'path' string?
My espected value should be "/home/abcd/public_html/".
Another word, how to copy the string from the last '/' ?
I don't want 'a.cgi' or 'b.cgi' etc from this new
value.
Thank.