Hamilton LaboratoriesHamilton C shell 2012User guideLanguage reference

Pathname editing

Oregon Coast

Pathname editing on x\y.z
Previous | Next

Topics

Usage
See also

Usage

Pathname editing can be applied to any command, variable or history substitution. Any number in a row can be applied.

Operator Name Description Result
:h head

Directory containing

x

:r root

Path without .ext

x\y

:t tail

Simple filename

y.z

:b base

Filename without .ext

y

:e extension

.ext without the .

z

:f fullpath

Fully-qualified name

c:\Users\Public\x\y.z

:m mixedpath

Mixed-case pathname

x\Y.c

:M fullmixedpath

Mixed-case pathname

c:\Users\Public\x\Y.z

: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.

See also

Substitution modifiers
Variable substitutions
History recall
Command substitution
Tutorial: Pathname editing
Tutorial: Variables
Tutorial: History
Tutorial: Command substitution

Previous | Next

Getting started with Hamilton C shell

Hamilton C shell, as it first wakes up.

Getting started with Hamilton C shell

A first few commands.

You can set the screen colors to your taste.

You can set the screen colors to your taste.