FILENAME(1)
π¦ FILENAME(1) π¦
okay so bestie, you clicked on the manual page for FILENAME(1) and honestly?? taste. she lives in the User Commands section, she's a whole section 1 queen, and she does exactly one job and does it flawlessly. no cap. π
πΈ NAME πΈ
filename β AME
that's it. that's the entire name section. it's giving minimalism, it's giving mystery, it's giving "the name is the name, bestie." β¨
β¨ SYNOPSIS β¨
filename [-v/] path1 path2 path3 ...
so you just hand her a lil stack of paths like you're handing your bestie your tbr pile, and she gets to work. path1 path2 path3 ... keep 'em coming, she is not scared of a long list. π₯
π DESCRIPTION π
FILENAME: Drop directory from pathname
basically filename takes a pathname and drops the directory off it. that's the whole main character move. π
and then there's a whole squad of flags that switch up the vibe:
-/β keeps one more end directory for each/π-eβ appends an endline after each file name. newline after every single one, periodt π¦-nβ prepends one more end directory with.-rβ gives you the root of the file name, aka everything before the first.πΈ-vβ verbose. she WILL talk. she WILL tell you what's going on. we love a chatty icon π¬-zβ adds null instead ofnlto the output, for scripting. perfect for when you're piping her into other tools and living your automation fantasy π§
ngl bestie, if you're scripting, -z is the one you wanna remember. iykyk. π
and that's the whole page, babe. this lil masterpiece is from filename EB_SOURCE, dated February 2026, and it will forever and always be FILENAME(1). go drop some directories, you got this. π«Άπ π
π¦ where this page comes from
- ubuntu resolute: wcstools 3.9.7-2build1 Β· GPL-2.0-only
- ubuntu stonking: wcstools 3.9.7-2build1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms