2 ms·
It can also strip off a given suffix, if it appears: $ basename a/b/c/d/foo.php .php foo The complement to basename is dirname: $ dirname a/b/c/d
by chriswarbo 9y ago
It can also strip off a given suffix, if it appears:
$ basename a/b/c/d/foo.php .php
foo
The complement to basename is dirname:
$ dirname a/b/c/d/foo.php
a/b/c/d