Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!bellcore!decvax!genrad!panda!talcott!harvard!seismo!brl-tgr!tgr!W8SDZ@SIMTEL20.ARPA From: W8SDZ@SIMTEL20.ARPA (Keith Petersen) Newsgroups: net.micro Subject: Unix Program for Converting SIMTEL20 FTP Server Filenames Message-ID: <224@brl-tgr.ARPA> Date: Sun, 28-Jul-85 03:48:35 EDT Article-I.D.: brl-tgr.224 Posted: Sun Jul 28 03:48:35 1985 Date-Received: Wed, 31-Jul-85 08:20:07 EDT Sender: news@brl-tgr.ARPA Lines: 28 Many have complained that when getting (especially "mget"ing) files to a Unix system from the SIMTEL20 FTP server, the resulting filenames are not what would be desired. This problem is partially fixed by the installation of a new FTP server that allows users to CWD (CD) to a given directory for read access, so that the fully qualified file name need not be sent back for each file gotten with an "mget". However, even if you CWD to the directory before issuing an mget command, the files will still show up with uppercase names and will include "generation" (version) numbers. And of course, if you fail to CWD first, you still get the directory name too, so that you are likely to find files with names like CRCK2.C.1 in your Unix directory, rather than the crck2.c you might have wanted. A new program, XXU.C (20-to-Unix filename converter), is available in PS: which will fix the names of all files sent to a Unix system from a DEC-20 FTP server. It should work on VMS and DEC-20 filenames alike -- it strips DECnet node names, device names, directory names, generation numbers, and it lowercases the uppercase letters. When renaming to the name thus formed, it takes care not to write over any existing files. See comments in the source for further details. --Keith