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



It also works in cygwin under windows

----- Original Message -----
From: "K. C. Li" <li@xxxxxxx>
To: <ukha_d@xxxxxxx>
Sent: Wednesday, May 21, 2003 12:01 PM
Subject: Re: [ukha_d] Tag & Rename question....


> 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
>
>
>
> ** UKHA2004 BE THERE! ** - start planning now.
>
> http://www.automatedhome.co.uk
> Post message: ukha_d@xxxxxxx
> Subscribe:  ukha_d-subscribe@xxxxxxx
> Unsubscribe:  ukha_d-unsubscribe@xxxxxxx
> List owner:  ukha_d-owner@xxxxxxx
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>



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.