On Tue, 20 Oct 1998, Anthony Landreneau wrote:
> Greetings,
> Trying to automate work done by some WIN95/NT people who don't
> understand
> upper/lower case. I have a directory of files that are upper case and need
> to be brought to lower case. Does anyones have a program or script that
>
On Tue, 20 Oct 1998, Anthony Landreneau wrote:
> Thanks guys, got the job done. I love ths little script, fits well in my
> /usr/bin too!
> Tell you, you don't get help like this from Microsoft!
I put my script in /usr/local/bin keeps /usr/bin messy.. the way dpkg
likes it :) (Also makes
1> cat /usr/local/bin/rename
#!/usr/bin/perl -Tw
use locale;
# usage: rename perlexp [files]
($op = shift) || die "Usage: $0 perlexp [filenames]\n";
if ([EMAIL PROTECTED]) { @ARGV = ; chop(@ARGV); }
for (@ARGV) {
$old = $_;
eval $op;
die $@ if $@;
$new = $_;
next if $old eq $new;
next
Thanks guys, got the job done. I love ths little script, fits well in my
/usr/bin too!
Tell you, you don't get help like this from Microsoft!
Thanks again,
Anthony Landrenea
Infinity Data Systems
>I think this is from some HOWTO but I forget which one:
>
>[EMAIL PROTECTED] bin]$less up2lo
>#!/
WARNING: I have had files disappear on me when using such a script when the
target filesystem is on a Win32 machine. It is safer to rename them via an
intermediate name:
for file in $*
do
to=`echo $file | tr [:upper:] [:lower:]`
mv $file $to.newone;mv $to.newone $to
done
Rgds, And
Nathan E Norman wrote:
> On Tue, 20 Oct 1998, Anthony Landreneau wrote:
>
> : Greetings,
> :Trying to automate work done by some WIN95/NT people who don't
> understand
> : upper/lower case. I have a directory of files that are upper case and need
> : to be brought to lower case. Does any
> Trying to automate work done by some WIN95/NT people who don't
> understand
> upper/lower case. I have a directory of files that are upper case and need
> to be brought to lower case. Does anyones have a program or script that
> could help me do about 400 files?
man mmv
B.
*- Anthony Landreneau wrote about "Automate UPPER to lower case directory"
| Greetings,
| Trying to automate work done by some WIN95/NT people who don't
understand
| upper/lower case. I have a directory of files that are upper case and need
| to be brought to lower case. Do
On Tue, 20 Oct 1998, Anthony Landreneau wrote:
: Greetings,
: Trying to automate work done by some WIN95/NT people who don't
understand
: upper/lower case. I have a directory of files that are upper case and need
: to be brought to lower case. Does anyones have a program or script that
Greetings,
Trying to automate work done by some WIN95/NT people who don't
understand
upper/lower case. I have a directory of files that are upper case and need
to be brought to lower case. Does anyones have a program or script that
could help me do about 400 files?
Thanks,
Anthony Landr
10 matches
Mail list logo