[comp.sys.handhelds] "RENAME" for HP48

rouben@math16.math.umbc.edu (Rouben Rostamian) (04/05/91)

Here's a "new and improved" RENAME program.  It incorporates many ideas
from various versions posted to this newsgroup recently.  It uses
PURGE to delete variables and PGDIR to remove directories.  It retains
the order of the variables in the listing, and is frugal in memory usage.

Usage:
2:  'oldname'       |  Renames 'oldname' to 'newname'
1:  'newname'       |

Checksum: #5179d
Bytes:      99.5
\<< \-> a b
   \<< VARS DUP
       a POS
       b PUT
       a RCL
       a
       IF DUP VTYPE 15 SAME
       THEN PGDIR
       ELSE
       PURGE
       END
       b STO
       ORDER
    \>>
\>>

--
Rouben Rostamian                          Telephone: (301) 455-2458
Department of Mathematics and Statistics  e-mail:
University of Maryland Baltimore County   bitnet: rostamian@umbc.bitnet
Baltimore, MD 21228,  U.S.A.              internet: rouben@math9.math.umbc.edu