[comp.mail.uucp] Archiving maps on VAX

marvin@starch.dec.com (Jack Marvin, ASSOCIATES for HUMAN RESOURCES, . . . . PO Box 727, Concord, MA 01742 . (508)369-7810 or (617)259-9624) (12/06/88)

    I want to be able to use the map archives.  I'm a non-technical
    consultant for DEC and can access DEC Shell.  Unfortunately I get an
    error message when I use Shell on the shell archive.  The difficulty
    seems to be in the difference between VMS and Unix filenames.  The Unix
    file name contains one too many periods.

    Going through and changing file names by hand is too much.  Anyone got
    a program that makes the conversion?  I am not a programmer.

    Jack Marvin  "marvin@starch.dec.com"

alter@ttidca.TTI.COM (Steve Alter) (12/08/88)

In article <8812060112.AA21878@decwrl.dec.com> marvin@starch.dec.com (Jack Marvin, ASSOCIATES for HUMAN RESOURCES, . . . . PO Box 727, Concord, MA 01742 . (508)369-7810 or (617)259-9624) writes:
} The difficulty
} seems to be in the difference between VMS and Unix filenames.  The Unix
} file name contains one too many periods.
} 
} Going through and changing file names by hand is too much.  Anyone got
} a program that makes the conversion?  I am not a programmer.

If your "Shell" subsystem provides the "sed" command, and such Unix
basics as piping and command-substitution, then here's a simple idea:

On any filename, such as the map files which look like d.usa.ca.1 or
some other name with dots in the same places, just change all of the
dots into underscores, and tack on an extention of ".MAP".

Without a better description of your context, I'm unable to give
you anything simpler than the following Bourne-shell example.

Let's say that you've got a Unix-like map filename in a shell-variable
called "$file".  The following command-line will perform the above
described-conversion:

	file=`echo $file | sed 's/\./_/g'`

If this answer is either totally above or below you then I apologize
in advance.
-- 
Steve Alter        <alter@tti.com>
{csun,philabs,psivax,pyramid,quad1,rdlvax,retix}!ttidca!alter
Citicorp/TTI, Santa Monica CA  (213) 452-9191 x2541