| Main index | Section 1 | 日本語 | Deutsch | Options |
The dirname utility deletes the filename portion, beginning with the last slash ‘amp;/’ character to the end of string (after first stripping trailing slashes), and writes the result to the standard output.
FOO=`dirname /usr/bin/trail`
| BASENAME (1) | June 21, 2021 |
| Main index | Section 1 | 日本語 | Deutsch | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | Today, the Unix equivalent of a power drill would have 20 dials and switches, come with a nonstandard plug, require the user to hand-wind the motor coil, and not accept 3/8" or 7/8" drill bits (though this would be documented in the BUGS section of its instruction manual). | ” |
| — The Unix Haters' handbook | ||