All apps/dirname

dirname

dirname

Print the directory portion of a pathname.

Runs as dirname|macOS, Linux, Windows

Command form

ai-draft · 1 task · 1 field

Strips the last path component from each name.

Opens the form; the finished command lands at your prompt, unrun
otty gui dirname
Directory part of a pathExample values, fixed in this page — nothing here reaches a terminal
Basic
Path*
string
TasksEach one presets the form for one job
Strip last component
names
ParametersOnly these flags are editable in the form
Path
string · positional 0 · repeatable
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed dirname against its version. A form that does not match your version is not offered.