3 ms·
This is really easy to do with a shell pattern. $ x=/some/really/long/path/to/my/file.txt $ echo "${x##*/}" file.txt
by chasil 2y ago
This is really easy to do with a shell pattern.
$ x=/some/really/long/path/to/my/file.txt
$ echo "${x##*/}"
file.txt