DIRNAME(1)
π dirname(1) π
okay so bestie, this is dirname(1), and it lives in the User Contributed Perl Documentation section of manual-land. Itβs here to hand you the directory part of a path, and itβs honestly iconic for it. π«Ά
πΈ NAME πΈ
dirname β print the directory name of a path. Short, sweet, to the point. π
β¨ SYNOPSIS β¨
dirname string
π¦ DESCRIPTION π¦
So dirname prints the directory component of a path. The way it does that: everything starting from the last / (or whatever the path separator is on your OS) gets deleted. Thatβs the whole vibe. π
π OPTIONS π
--versionβ the one option listed on this page. No extra description is given, so Iβm not gonna invent one, bestie. π
π ENVIRONMENT π
The working of dirname is not influenced by any environment variables. None. Zero. Itβs giving unbothered. π
π BUGS π
dirname has no known bugs. Periodt. β¨
π STANDARDS π
This dirname implementation is compliant with the IEEE Std1003.2-1992 specification, also known as POSIX.2.
Itβs also compatible with the OpenBSD implementation. Slay. π₯
π AUTHOR π
This implementation of dirname was adapted by Michael Mikonos.
The original version was written by Abigail, but the code was completely replaced.
π COPYRIGHT and LICENSE π
This program is copyright by Abigail, 1999, and Michael Mikonos, 2024.
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.
okay bestie, thatβs the whole page π β itβs perl v5.42.2, dated 2026-02-15, signing off with main character energy. π§
π¦ where this page comes from
- alpine 3.24: perl-power-tools-doc 1.053-r1 Β· GPL-2.0-or-later AND Artistic-1.0-Perl AND Artistic-2.0 AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms