03.03.2013 Views

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The RENAME Command <strong>CP</strong>/M 3 User's Guide<br />

If you use wildcards in the filespecs, the wildcards in the new filespec<br />

must correspond exactly to the wildcards in the old filespec. For example,<br />

in the following two commands, the wildcard filespecs correspond<br />

exactly:<br />

A > REN *.TXI=*.TEX<br />

A >REN A*.T*=S*.T*<br />

In the following example, the wildcards do not match and <strong>CP</strong>/M 3<br />

returns an error message.<br />

A >REN A*.TEX=A.T*<br />

Examples: A >RENAME NEWASM.BAS=OLDFILE.BAS<br />

The file OLDFILE.BAS changes to NEWASM.BAS on drive A.<br />

A>RENAME<br />

The system prompts for the filespecs:<br />

Enter New Name:X.PRN<br />

Enter Old Name:Y.PRN<br />

Y PRN=X PRN<br />

A><br />

File Y.PRN is renamed X.PRN on drive A.<br />

B>REN A:X.PAS=Y. PLI<br />

The file Y.PLI changes to X.PAS on drive A.<br />

A >RENAME S*.TEX=A*.TEX<br />

The preceding command renames all the files matching the wildcard<br />

A*.TEX to files with filenames matching the wildcard S*.TEX,<br />

respectively.<br />

5-82

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!