Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 May 2015 20:11:03 -0700
From:      Jeffrey Bouquet <jeffreybouquet@yahoo.com>
To:        freebsd-perl@freebsd.org
Cc:        ports@freebsd.org
Subject:   Re: Invalid version format (non-numeric data) ... Perl broken...
Message-ID:  <555806C7.4010402@yahoo.com>
In-Reply-To: <1431743111.34209.YahooMailBasic@web140905.mail.bf1.yahoo.com>
References:  <1431743111.34209.YahooMailBasic@web140905.mail.bf1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On 05/15/15 19:25, Jeffrey Bouquet via freebsd-ports wrote:
> Freebsd 10 STABLE
>
> perl5-5.20.2_4
>
> 1...
> Error in Makefile.PL line 21
> [building p5-Gtk2]
> while trying to build to fix...
>
> 2...
> Line 49 in gprename (x11-fm)
> line 26 in Gtk2.pm (p5-Gtk2)
> [running gprename]
>
> Trying to rename files that are slightly too lengthy for
> cli rename tools.  This error appears trying to run or build...
> ....
> similar
> ......
> 3...
> p5-AnyEvent
> Invalid version format (non-numeric data)  at /usr/local/lib/
> perl5/site_perl/ExtUtils/MakeMaker.pm  line 6.
>
> Slight chance the contexts are off a bit, the the errors in sum total
> are there.  [Like plainly in example # 3]
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
Figuring as perl won't rebuild, and many other perl cli won't run, and
most AFAIK or all
perl ports won't build...

I've saved about eight .htm on renaming.
'rename' fails (too many arguments)...

BUT fyi we have a TOOL...  kind of off topic for the perl list; apologies. 
Not my script. 

rename001002.sh
.......................................................................................................................
#!/bin/sh

filePrefix="$1"
sequence=1

for file in $(ls -tr *.jpg) ; do
    renamedFile="$filePrefix$sequence.jpg"
    echo $renamedFile
    currentFile="$(echo $file)"
    echo "renaming \"$currentFile\" to $renamedFile"
    mv "$currentFile" "$renamedFile"
    sequence=$(($sequence+1))
done
exit 0
.......................................................................................................................
# rename new-file-name-
will rename site_00xxx000xxxjjFFjjFF.jpg   (a slew of whatever *.jpg)
to
new-file-name-001.jpg
new-file-name-002.jpg

Worked here at least once.
pardon for any typos
Hope this saves someone hours of web searching sometime, if
'rename' fails and gprename doesn't load etc...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?555806C7.4010402>