Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!asuvax!ncar!ico!auto-trol!brobes From: brobes@auto-trol.UUCP (Brooke Besser) Newsgroups: comp.unix.questions Subject: Wildcard expressions from the command line. Message-ID: <569@auto-trol.UUCP> Date: 4 Jan 90 16:58:41 GMT Reply-To: brobes@auto-trol.COM (Brooke Besser) Distribution: usa Organization: Modeling Applications Lines: 18 In the "ed" regular expressions, we are able to use a syntax to remember a wildcard string as follows: /(.*\) This syntax will remember the wildcard expression, and enable it to be used with a "\#", where # is the position of the wildcard string in the regular expression. 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?