Pathname editing can be applied to any command, variable or history substitution. Also, any number of editing operations can be applied, one after the other, to a given substitution.
|
Operator
|
Name
|
Description
|
Result
|
|
|---|---|---|---|---|
| :h | head | Directory containing | x\y | |
| :r | root | Path w/o .ext | x\y\z | |
| :t | tail | Simple filename | z.c | |
| :b | base | Filename w/o .ext | z | |
| :e | extension | .ext without the "." | c | |
| :f | fullpath | Fully-qualified name | d:\bob\x\y\z.c | |
| :m | mixedpath | Mixed-case pathname | X\y\Z.c | |
| :M | fullmixedpath | Mixed-case pathname | d:\Bob\X\y\Z.c | |
| :A | shortname | Short 8.3 filename | ||
| :L | longname | Long filename |
The shortname function depends on support from the filesystem. Long filenames read over the network from an HPFS partition do not have shortnames, for example.
Previous Topic |
Table of Contents
| Next Topic
Copyright © 1988-2003 by Hamilton Laboratories. All rights reserved.