BASENAME(1)

πŸ“¦ version 1.053, in alpine 3.24

πŸ’– NAME πŸ’–

okay so BASENAME(1) is the manual page for basename, coming at you from the User Contributed Perl Documentation corner of the internet, and its whole mission is remove directory and suffix from filenames. That’s it. That’s the gig. πŸŽ€

✨ SYNOPSIS ✨

basename string [suffix]

πŸ¦‹ DESCRIPTION πŸ¦‹

basename prints the file component of a path. Like, it looks at a path and hands you the filename part β€” main character behavior, honestly. A second argument to basename is interpreted as a suffix to remove from the file. And here’s the chill part: it is not considered an error if the given suffix does not match the string. No drama, no side-eye, it just does its thing. πŸ’…

🌸 OPTIONS 🌸

  • No options, periodt. basename does not accept any options β€” not a single flag, not a sneaky little extra. πŸ’€

πŸŽ€ ENVIRONMENT πŸŽ€

The working of basename is not influenced by any environment variables. None. Zero. It’s giving unbothered main character energy. ✨

πŸ’€ BUGS πŸ’€

basename has no known bugs. Slay. No cap. 🫢

⭐ STANDARDS ⭐

This basename implementation is compliant with the IEEE Std1003.2-1992 specification, also known as POSIX.2. Iconic behavior, lowkey. πŸ‘‘

This basename implementation is compatible with the OpenBSD implementation. So yes, it plays nice. 🌈

πŸ‘‘ AUTHOR πŸ‘‘

The Perl implementation of basename was written by Abigail, perlpowertools@abigail.be. Give her the credit, bestie. πŸ’œ

This program is copyright by Abigail 1999. πŸŽ€

This program is free and open software. You may use, copy, modify, distribute and sell this program (and any modified variants) in any way you wish, provided you do not restrict others to do the same.


that’s the whole page, bestie β€” mwah πŸ’‹ this one is from perl v5.42.2, dated 2026-02-15. πŸ¦‹πŸ’–

πŸ“¦ where this page comes from