Viktor Szakáts napsal(a):
Okay.
Is there a simple cmdline to convert filenames to lowercase,
which works on most *nix systems?
|
convmv --lower --notest *
or
|
|rename 'y/A-Z/a-z/' *|
|or script like
|
|#!/bin/bash
for filename in *
do
n=`echo $filename | tr '[:upper:]' '[:lower:]'`
mv $filename $n
done
|
Thanks. convmv and rename doesn't work on Darwin, so we'd
need something universal. Plus now also EOL conversion is
needed, which again doesn't seem to have an easy and portable
*nix command.
Here is a perl one-line that does the same thing from the command line:
|perl -MFile::Copy -e 'move $_, lc($_) foreach glob "*"'|
|I'm not sure that darwin have installed perl at default, universal are
bash script
|
I guess we must assume that *nix users are professional
enough who know how to solve such problems on their actual
*nix variant.
If someone feels like it, please update dbu/rl/superlib
readme.txt files with such information.
I think that for *nix users is enought info in readme files
regards
Davor
Brgds,
Viktor
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour