Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!apple!amdahl!pyramid!prls!philabs!ttidca!alter From: alter@ttidca.TTI.COM (Steve Alter) Newsgroups: comp.mail.uucp Subject: Re: Archiving maps on VAX Message-ID: <3518@ttidca.TTI.COM> Date: 8 Dec 88 03:06:33 GMT References: <8812060112.AA21878@decwrl.dec.com> Reply-To: alter@ttidca.tti.com (Steve Alter) Organization: Citicorp/TTI, Santa Monica Lines: 30 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{csun,philabs,psivax,pyramid,quad1,rdlvax,retix}!ttidca!alter Citicorp/TTI, Santa Monica CA (213) 452-9191 x2541