Bash get filename from given path on Linux or Unix

How do I extract filename and extension in the Bash shell script from the given path? How can I get filename from the path under the bash shell?
The post Bash get filename from given path on Linux or Unix appeared first on nixCraft.

from [RSS/Feed] nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format https://www.cyberciti.biz/faq/bash-get-filename-from-given-path-on-linux-or-unix/

Posted in Uncategorized and tagged , , , .

Leave a Reply

Your email address will not be published. Required fields are marked *