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-unsubscr...@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...
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to