Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!news.funet.fi!fuug!sics.se!ifi.uio.no!nuug!ulrik!xantos!suley From: suley@xantos.uio.no (Suleyman Kondakci) Newsgroups: comp.unix.shell Subject: Re: Shell wildcard expansion Message-ID: <1991Jun25.122240.12169@ulrik.uio.no> Date: 25 Jun 91 12:22:40 GMT References: <13912@mentor.cc.purdue.edu> <1991Jun24.195425.26387@convex.com> <85621@notavax.Princeton.EDU> Sender: news@ulrik.uio.no (Mr News) Reply-To: suley@xantos.uio.no (Suleyman Kondakci) Organization: University of Oslo, Norway Lines: 18 Nntp-Posting-Host: xantos.uio.no 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 <