Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!think!snorkelwacker!bloom-beacon!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.questions Subject: Re: Wildcard expressions from the command line. Message-ID: <1990Jan4.210840.773@athena.mit.edu> Date: 4 Jan 90 21:08:40 GMT References: <569@auto-trol.UUCP> Sender: news@athena.mit.edu (News system) Reply-To: jik@athena.mit.edu (Jonathan I. Kamens) Distribution: usa Organization: Massachusetts Institute of Technology Lines: 24 In article <569@auto-trol.UUCP>, brobes@auto-trol.UUCP (Brooke Besser) writes: > The problem is that this syntax cannot be used on the command line. This is > needed to be able to perform wildcard file manipulation. For example, if I > want to copy all files with a ".ftn" extension to a ".for" extension, how can > I copy these without writing a special shell script? If I could use the "ed" > regular wildcard expression, it would look like this: > > cp \(*\).ftn \1.for > > Is there any way to do this from the command line? The simple answer is, "No." This is one of the questions answered in the monthly comp.unix.questions Frequently Asked Questions posting. The most recent posting of that message was January 3, which means that if your site hasn't gotten it yet you should be getting it very soon. It is question number 9 in that posting. Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8495 Home: 617-782-0710