Reputation: 198218
In fish, say I have a file path from somewhere:
/aaa/bbb/ccc.txt
How can I get the full path of its parent dir? So I will get:
/aaa/bbb
Upvotes: 1
Views: 432
Reputation: 18551
This is the dirname
command, and it is a Unix utility, not specific to fish.
For example, cd (dirname /aaa/bbb/ccc.txt)
Upvotes: 3