Moving files
pll at lanminds.com
pll at lanminds.com
Mon Jan 6 11:10:37 EST 2003
In a message dated: 06 Jan 2003 10:22:14 EST
"Kenneth E. Lussier" said:
>What am I missing?
Perl of course
:)
perl -e 'opendir DIR,".";@f = grep { ! /^\./ && -f $_ } readdir(DIR);\
map {($n = $_)=~ s/\s+/_/g; rename ($_, $n) } @f;'
(sorry it took so long for this one, I ran out of coffee :)
There's probably a better way to right this one-liner, but it's the
first thing I came up with.
--
Seeya,
Paul
--
Key fingerprint = 1660 FECC 5D21 D286 F853 E808 BB07 9239 53F1 28EE
It may look like I'm just sitting here doing nothing,
but I'm really actively waiting for all my problems to go away.
If you're not having fun, you're not doing it right!
More information about the gnhlug-discuss
mailing list