The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tag & Rename question....


  • To: ukha_d@xxxxxxx
  • Subject: Re: Tag & Rename question....
  • From: "K. C. Li" <li@xxxxxxx>
  • Date: Wed, 21 May 2003 12:01:01 +0100 (BST)
  • Mailing-list: list ukha_d@xxxxxxx; contact ukha_d-owner@xxxxxxx
  • Reply-to: ukha_d@xxxxxxx

On Wed, 21 May 2003, Paul Gordon wrote:

> D:\MP3 Archive\- DHA Archive M-Z\Archive N-Z\Sweet>perl -e
'for(`find .
> -type d`
> ){chomp;$o=$_;if(s/.*-\s*//){rename $o,$_ unless -d $_;};}'
>
> Can't find string terminator "'" anywhere before EOF at -e
line 1.
>
> I'm using Activestate Perl 5.6.1 on Windows 2003 server...

I believe Ant's one-liner is meant for Unix/Linux shell script use. The
"for" command loops through every item found by the
"find" command and
executing the Perl commands for each.

Regards,

Kwong Li
li@xxxxxxx
Laser Business Systems Ltd.
http://www.laser.com



Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.