[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
|