From owner-freebsd-questions Mon Oct 20 08:11:45 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA27861 for questions-outgoing; Mon, 20 Oct 1997 08:11:45 -0700 (PDT) (envelope-from owner-freebsd-questions) Received: from blue.pca.state.mn.us (blue.pca.state.mn.us [156.98.19.12]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA27856 for ; Mon, 20 Oct 1997 08:11:42 -0700 (PDT) (envelope-from jabbott@blue.pca.state.mn.us) Received: from pink (pink.pca.state.mn.us [156.98.19.13]) by blue.pca.state.mn.us (8.8.5/8.8.5) with SMTP id KAA29060 for ; Mon, 20 Oct 1997 10:09:55 GMT Message-Id: <3.0.3.32.19971020101324.00a53e90@blue.pca.state.mn.us> X-Sender: jabbott@blue.pca.state.mn.us X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32) Date: Mon, 20 Oct 1997 10:13:24 -0500 To: questions@FreeBSD.ORG From: abbott on blue Subject: Unix question. Regular expressions in commands? In-Reply-To: <199710201407.PAA17582@andromeda> References: <28262143@toto.iv> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I guess this is kind of a newbie unix question. I have just learned about regular expressions within perl and so am trying to use them everyplace. :-) >From a command line what I would like to do is.... # mv *.[dump asc dat txt clean] tablecreation but this does not work. I end up having to... # mv *.dump tablecreation # mv *.asc tablecreation # mv *.dat tablecreation # mv *.txt tablecreation # mv *.clean tablecreation Is there anyway to do regular expression matching within commands? Thanks. --ja