Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Oct 1997 17:43:13 -0700 (PDT)
From:      Donald Burr <dburr@POBoxes.com>
To:        questions@FreeBSD.ORG
Cc:        jabbott@blue.pca.state.mn.us
Subject:   RE: questions-digest V3 #489
Message-ID:  <XFMail.971020174533.dburr@POBoxes.com>
In-Reply-To: <199710202356.QAA29920@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----

My secret spy satellite informs me that on 20-Oct-97,
owner-questions-digest@FreeBSD.ORG wrote:

>From: abbott on blue <jabbott@blue.pca.state.mn.us>
>Date: Mon, 20 Oct 1997 10:13:24 -0500
>Subject: Unix question.  Regular expressions in commands?
>
>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

There are differences (some subtle, some not) between Perl-ish regexps and
regexps used by other unix programs (e.g. shell).

In shell-ese, what you want to do should be stated as:

# mv *.{dump,asc,dat,txt,clean} tablecreation

Note the usage of {} instead of [], and the arguments are separated by
commas, not spaces.

Read the regexp(3) man page to for more information on how the rest of the
unix world handles regexps.

- ---
Donald Burr <dburr@POBoxes.com> - Ask me for my PGP key | PGP: Your
WWW HomePage: http://DonaldBurr.base.org/  ICQ #1347455 | right to
Address: P.O. Box 91212, Santa Barbara, CA 93190-1212   | 'Net privacy.
Phone: (805) 957-9666    FAX: (800) 492-5954            | USE IT.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBNEv7LPjpixuAwagxAQEDIAP/QnrEF3sBjKtLKhNIJ+fTKZWH677+D1m8
IFMWwfsIHZE5sIaA2PdRSrKT27X7YWEBMlCpMvR/GXK96Fy/ksKdQdpeSLtutrmw
9WYIW/grk+0sIIirj50+D3vC57sO3RzvaBRiqvsp+q/b1ASO60w8IpuDKtTo/qyh
+cdbGnQRsio=
=6g0m
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.971020174533.dburr>