From franklin@ug.cs.dal.ca Sat Oct 2 20:51:38 1993 Newsgroups: comp.sys.mac.misc Path: news.itd.umich.edu!destroyer!gatech!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!uunet!psinntp!nstn.ns.ca!cs.dal.ca!ug.cs.dal.ca!franklin From: franklin@ug.cs.dal.ca (Steve Franklin) Subject: MAC.ARCHIVE.UMICH.EDU script for retrieving files Message-ID: Sender: usenet@cs.dal.ca (USENET News) Nntp-Posting-Host: ug.cs.dal.ca Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada Date: Tue, 28 Sep 1993 19:32:38 GMT Lines: 155 I'm not sure if this script needs any work or not, but it is a simple interface for getting files from mac.archive.umich.edu... It takes input as: (assuming you've named it "macftp") macftp arcade shatterball Then it will get all files with "shatterball" in the /mac/games/arcade directory... Most of the paths should be okay, but it's easy enough to change or add them if you find the need to... Just run this like a normal script, and all questions, ideas, improvements, and critiques should be sent to: franklin@ug.cs.dal.ca Steve Franklin p.s. - I thank the author that originall conceived of this script... I just don't know who it was I'm afraid... #!/bin/sh # Picked up pieces of this and the idea from someone else... damned if I # can remember who it was... Was initially a *yecH* ibm/garbo script I think # Mail franklin@ug.cs.dal.ca with ideas, questions, or criticisms. host=mac.archive.umich.edu directory=/mac if [ $# -lt 2 ] then echo "Usage: $0 directoryA file1 file2 ... directoryB file3 file4 ..." echo "Example: $0 pd2 moder16.zip ts tsfaq30.zip" exit 1 else echo "Franklin's umich script... mail franklin@ug.cs.dal.ca for help." ( echo user anonymous -$USER@$host echo hash echo binary echo prompt echo cd $directory while test -n "$1" do case $1 in aninmation) echo cd .. ; echo cd animation;; ########################### development) echo cd development;; game) echo cd game;; graphics) echo cd graphics;; hypercard) echo cd hypercard;; incoming) echo cd incoming;; misc) echo cd misc;; sound) echo cd sound;; extensions) echo cd system.extensions;; util) echo cd util;; ########################### apple) echo cd development; echo cd apple;; languages) echo cd development; echo cd languages;; libraries) echo cd development; echo cd libraries;; defproc) echo cd development; echo cd defproc;; humaninterface) echo cd development; echo cd humaninterface;; pressrelease) echo cd development; echo cd pressrelease;; sc.notes) echo cd development; echo cd sc.notes;; stack) echo cd development; echo cd stack;; ###game adventure) echo cd game; echo cd adventure;; arcade) echo cd game; echo cd arcade;; board) echo cd game; echo cd board;; card) echo cd game; echo cd card;; demo) echo cd game; echo cd demo;; gameutil) echo cd game; echo cd gameutil;; space) echo cd game; echo cd space;; war) echo cd game; echo cd war;; ###graphics draw) echo cd graphics; echo cd draw;; eps) echo cd graphics; echo cd eps;; fractal) echo cd graphics; echo cd fractal;; gif) echo cd graphics; echo cd gif;; graphicsutil) echo cd graphics; echo cd graphicsutil;; paint) echo cd graphics; echo cd paint;; quicktime) echo cd graphics; echo cd quicktime;; ###hypercard education) echo cd hypercard; echo cd education;; fun) echo cd hypercard; echo cd fun;; game) echo cd hypercard; echo cd game;; hamradio) echo cd hypercard; echo cd hamradio;; hypercardutil) echo cd hypercard; echo cd hypercardutil;; mactool) echo cd hypercard; echo cd mactool;; organization) echo cd hypercard; echo cd organization;; science) echo cd hypercard; echo cd science;; xcmd) echo cd hypercard; echo cd xcmd;; xfcn) echo cd hypercard; echo cd xfcn;; ###misc astronomy) echo cd misc; echo cd astronomy;; biology) echo cd misc; echo cd biology;; chemistry) echo cd misc; echo cd chemistry;; compsci) echo cd misc; echo cd compsci;; documentation) echo cd misc; echo cd documentation;; foreignlang) echo cd misc; echo cd foreignlang;; math) echo cd misc; echo cd math;; medical) echo cd misc; echo cd medical;; tex) echo cd misc; echo cd text;; umichinfo) echo cd misc; echo cd umichinfo;; umichlicensed) echo cd misc; echo cd umichlicensed;; update) echo cd misc; echo cd update;; ################# art) echo cd art;; demo) echo cd demo;; education) echo cd education;; hypercard) echo cd hypercard;; text) echo cd text;; util) echo cd util;; ###sound midi) echo cd sound; echo cd midi;; sounds) echo cd sound; echo cd sounds;; soundutil) echo cd sound; echo cd soundutil;; ###system.extensions cdev) echo cd system.extensions; echo cd cdev;; chooser) echo cd system.extensions; echo cd chooser;; commtoolbox) echo cd system.extensions; echo cd commtoolbox;; da) echo cd system.extensions; echo cd da;; init) echo cd system.extensions; echo cd init;; fkey) echo cd system.extensions; echo cd fkey;; font) echo cd system.extensions; echo cd font;; bitmap) echo cd system.extensions; echo cd font; echo cd bitmap;; type1) echo cd system.extensions; echo cd font; echo cd type1;; type3) echo cd system.extensions; echo cd font; echo cd type3;; ###utils compression) echo cd util; echo cd compression;; editor) echo cd util; echo cd editor;; encryption) echo cd util; echo cd encryption;; font) echo cd util; echo cd font;; multifinder) echo cd util; echo cd multifinder;; network) echo cd util; echo cd network;; powerbook) echo cd util; echo cd powerbook;; print) echo cd util; echo cd print;; science) echo cd util; echo cd science;; screensaver) echo cd util; echo cd screensaver;; trashcan) echo cd util; echo cd trashcan;; unix) echo cd util; echo cd unix;; virus) echo cd util; echo cd virux;; *.*) echo cd $1;; esac echo mget $2* echo pwd shift done echo bye ) | ftp -n -v $host 2> /dev/null > /dev/null & fi