GEEKS' LUNCH CONTEST
April 2005
Prize:
Win your choice of cool hacker
headware.

The whitehat "Hacker" hat or the blackhat "Hacker" hat.
http://www.thinkgeek.com/images/products/zoom/hacker-hat.jpg
($16.99 value - order before midnight tomorrow- your mileage may vary
etc.)
Take your pick.
Challenge:
The contest consists of the designing
the most elegant way to
rename a group of files as follows.
For an arbitrary number of files in the current directory like:
(yes the final suffix is a constant)
file1.name.foobar
file2.name.foobar
file3.name2.foobar
afile.name3.foobar
rename them to:
file1.name
file2.name
file2.name2
afile.name3
Hints:
Of course the definition of "elegant"
is entirely up to me;
but I'll give you some hints of some of my preferred adjectives:
short
shell script
clever
Linux/unix
(note: you
don't get brownie
points for pointing out that
some of my "adjectives" are "nouns".)
Of course your entry doesn't have to be the most elegant
way
EVER to complete the task-
only the most elegant
submitted.
:)
Rules:
1) Entries must be received by me by midnight
of April 18, 2005 my time.
Send them to monta.glcontest@geekslunch.com with the word "Contest" in
the subject line.
2) Appear, or send a representative to exactly the next geeks lunch, to
claim the prize (tentatively April 19th).
3) Multiple submissions allowed.
4) Work in groups if you like but there will only be 1 hat.
5) Earliest submission wins in case of "equally elegant".
6) Anyone can enter; no need
to be a "Geeks' Lunch Invitee"; but remember rule 2.
Fine
Print:
Entries may be published.
My decision is final and may even be considered
capricious
by some- if you don't like it, sponsor your own contest.
http://www.geekslunch.com
Did anyone actually bother to read this? You should have ;)