System information
1.4.1 ERA Command
Syntax:
ERA afn
The ERA (erase) command removes files from the currently logged-in disk, for example, the disk
name currently prompted by CP/M preceding the >. The files that are erased are those that satisfy
the ambiguous file reference afn. The following examples illustrate the use of ERA:
ERA X.Y The file named X.Y on the currently logged disk is removed from the disk
directory and the space is returned.
ERA X.* All files with primary name X are removed from the current disk.
ERA *.ASM All files with secondary name ASM are removed from the current disk.
ERA X?Y.C?M All files on the current disk that satisfy the ambiguous reference X?Y.C?M
are deleted.
ERA *.* Erase all files on the current disk. In this case, the CCP prompts the
console with the message
ALL FILES (Y/N)?
which requires a Y response before files are actually removed.
ERA B:*.PRN All files on drive B that satisfy the ambiguous reference ????????.PRN are
deleted, independently of the currently logged disk.
1.3 Switching Disks CP/M Operating System Manual
1-8