Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!caip!clyde!cbatt!cbosgd!ihnp4!inuxc!pur-ee!uiucdcs!convex!homer!root From: root@homer.UUCP Newsgroups: net.sources Subject: a useful alias Message-ID: <-745727@homer> Date: Wed, 30-Jul-86 17:11:00 EDT Article-I.D.: homer.-745727 Posted: Wed Jul 30 17:11:00 1986 Date-Received: Wed, 13-Aug-86 05:52:22 EDT Lines: 19 Nf-ID: #N:homer:-745727:000:642 Nf-From: homer.UUCP!root Jul 30 16:11:00 1986 this is an alias i've been using for a long time that i find very handy. just thought i'd share it. it will allow you to specify a directory to cd to by naming its intitals only. for example, to cd to the directory "/usr/fred/memos/archives/mary", type "c ufmam". if the initials are not unique (more than one directory has those initials), an error will result. if sucessful, the pathname that the initials expanded to will be echoed, and you will be cd'd. enjoy. alias c 'set d=`echo \!^* | sed "s/./\/&*/g"`; cd $d || echo $d' ----- marc brumlik ...trsvax!hal6000!unify1!\ >homer!marc ...ihnp4!sys1!/