Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Bash get basename of filename or directory name

I need to extract file Basename in Bash running on Linux. How can I use bash to get basename of filename or directory name for given path?

The post Bash get basename of filename or directory name appeared first on nixCraft.



This post first appeared on NixCraft — Linux Tips, Hacks, Tutorials, And Ide, please read the originial post: here

Share the post

Bash get basename of filename or directory name

×

Subscribe to Nixcraft — Linux Tips, Hacks, Tutorials, And Ide

Get updates delivered right to your inbox!

Thank you for your subscription

×