Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!convex!usenet From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.unix.shell Subject: Re: Shell wildcard expansion Message-ID: <1991Jun25.160600.29389@convex.com> Date: 25 Jun 91 16:06:00 GMT References: <1991Jun24.195425.26387@convex.com> <85621@notavax.Princeton.EDU> <1991Jun25.122240.12169@ulrik.uio.no> Sender: usenet@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 36 Nntp-Posting-Host: pixel.convex.com From the keyboard of suley@xantos.uio.no (Suleyman Kondakci): : :Here is a simple csh-script, which renames its *.c args to *.o files: : :#! /bin/csh :if ($#argv) then : foreach from ($*) : set renew = `echo $from:r` : echo moving $from to $renew.o : mv $from $renew.o : end :exit 0 :endif :# Didn't exit safely :cat <