(force) Unconditionally remove the speci®ed ®le, even if the ®le is marked read-only.
Cause dosrm to recursively delete the entire contents of a directory, followed by the direc- tory itself. dosrm can recursively delete up to 17 levels of directories.

d

dosrm(1)

dosrm(1)

NAME

dosrm, dosrmdir - remove DOS ®les or directories

SYNOPSIS

dosrm [-friu]device:®le ...

dosrmdir [-u]device:®le ...

DESCRIPTION

dosrm and dosrmdir are DOS counterparts of rm and rmdir (see rm(1) and rmdir(1), respectively).

dosrm removes the entries for one or more ®les from a directory. If a speci®ed ®le is a directory, an error message is printed unless the optional argument -ris speci®ed (see below).

dosrmdir removes entries for the named directories, provided they are empty.

Options

dosrm and dosrmdir recognize the following options:

-f -r

-i(interactive) Cause dosrm to ask whether or not to delete each ®le. If -ris also speci®ed, dosrm asks whether to examine each directory encountered.

-uDisable argument case conversion. In the absence of this option, all DOS ®le names are converted to uppercase.

A DOS ®le name is recognized by the presence of an embedded colon (:) delimiter; see dosif(4) for DOS ®le naming conventions.

Metacharacters *, ?, and [ ... ] can be used when specifying DOS ®le names. These must be quoted when specifying a DOS ®le name, because ®le name expansion must be performed by the DOS utilities, not by the shell. DOS utilities expand ®le names as described in regexp(5) under PATTERN MATCHING NOTATION.

EXAMPLES

These examples assume that a DOS directory structure exists on the device accessed through the HP-UXspecial ®le /dev/rfd9122 .

Recursively comb through the DOS directory /tmp and ask if each DOS ®le should be removed forcibly (that is, with no ®le mode checks):

dosrm -irf /dev/rfd9122:/tmp

Remove the DOS directory doug from the DOS volume stored as HP-UX®le hard_disk:

dosrmdir hard_disk:doug

SEE ALSO

dos2ux(1), doschmod(1), doscp(1), dosdf(1), dosls(1), dosmkdir(1), rm(1), rmdir(1), dosif(4).

Section 1192

− 1 −

HP-UX Release 11i: December 2000