rename - renames a Voyager data file to its SC, type and date
SYNOPSIS
rename
process
DESCRIPTION
rename
Will examine a file and try to figure out what type of file it is.
It it succeeds, it will log the file to find out the time of its data.
It then rename the file SC_TYPE_First time_last time.
OPTIONS
- All options are controlled by the environment
-
ENVIRONMENT
SC (v2)
if set the rename uses it as the space craft,, if not voyager 2 is assumed.
TYPE (xxx)
if set assumes that the data is of type ${TYPE}, xxx makes rename try to figure it out for its self.
ECHO
defaults to 'mv'
is used at the end to rename toe file.
If set to 'echo', the the new name is just echo, and no renaming is done.
LOG
If set the log of the file is left behind.
WAIT
If set to uniq,
The log life is given a uniq name, by suffixing the PID to its name.
If LOG is also set, this name will be again changed.
If set to other than UNIQ, rename will wait until any 'b.log' file
has been removed, then will remove the one it makes, when it is done.
BUGS
WAIT does not garrentee that two renames do not harm each others
b.log, bb.log files.
Use
setenv WAIT UNIQ
Markup created by unroff 1.0, April 11, 1996.