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 of nl to 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