Basename



         


basename is a common program found on Unix systems. Given a pathname, it will return the name of the file that the pathname refers to. For example, basename /home/john/pictures/cat.jpg will return "cat.jpg". Although this seems fairly obvious to humans, basename is a useful tool in shell scripts.






  View Live Article   This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License