BASENAME(1B)
πΈ NAME πΈ
Okay bestie, welcome to the basename page β specifically the 1B manual, BSD System Compatibility edition. Itβs the (BSD) version, and its whole job is returning the non-directory portion of a pathname. Slay. π
β¨ SYNOPSIS β¨
/ucb/basename string [suffix]
π DESCRIPTION π
So basename deletes the directory part of the filename-like string and prints whateverβs left. Iconic behavior, honestly.
If suffix is specified, and that suffix matches the last part of the result, then the matched portion of the fixed string is also deleted. Thatβs the whole trick. π¦
π§ ENVIRONMENT VARIABLES π§
LANG,LC_ALLβ seelocale(7)for the locale lore. πLC_CTYPEβ determines the mapping of bytes to characters. Literally the vibe check for bytes-to-chars. π₯
π SEE ALSO π
Go hang out with these other manual pages, iykyk:
This page was brought to you by the Heirloom Toolchest, dated 9/22/03. π«Άβ¨ Periodt.
π¦ where this page comes from
- nixos 26.05: heirloom 070715
- nixpkgs unstable: heirloom 070715
- Copyright (c) 2003 Gunnar Ritter
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms