GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||
GeezerVison is showing en.wikipedia.org — basename - Wikipedia
The command was introduced in X/Open Portability Guidelines issue 2 of 1987. It was inherited into the first version of POSIX and the Single Unix Specification.[1] It first appeared in 4.4BSD.[2] The version in GNU Core Utilities was written by David MacKenzie.[3] The command is available for Windows as part of the GnuWin32 project[4] and UnxUtils[5] and is in IBM i.[6] UseThe Single UNIX Specification is: ExamplesThe command reports the last part of a path ignoring any trailing slashes. $ basename /path/to/filename.ext filename.ext $ basename /path/to/ to If the suffix argument is included and matches the end of the last name, then that text is removed from the result. $ basename /path/to/filename.ext .ext filename $ basename /path/to/filename.ext xx filename.ext See also
References
External linksThe Wikibook Guide to Unix has a page on the topic of: Commands
Retrieved from "https://en.wikipedia.org/w/index.php?title=Basename&oldid=1336331793" | ||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | ||||||||||||||