Regular expression quiz


Subject: Regular expression quiz
From: Mike Barsalou (mbarsalou@aidea.org)
Date: Fri May 03 2002 - 15:52:00 AKDT


I have files in a directory like this:

mike-1.2.3
mike-jan-1.2.3
mike-feb-3.4.5
mike-mar-1.2.3
mike-dec-4.5.6
dave
dave-feb-1.2.3

AND

I have a file that contains a list of file names like this:

mike-1.2.3
mike-jan-1.2.3
mike-dec-4.5.6
dave
dave-feb-1.2.3

I want to move only the files listed in the this file to another directory.

Here is the quiz:

What regular expression do I use?

First one to answer this question with a detailed explanation of why it
works gets a Ximian T-shirt.

Mike

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Fri May 03 2002 - 15:54:23 AKDT