Re: [Forum] Change case på filenames

From: Jens Rohde <jens@rohde.dk>
Date: Wed Apr 10 2002 - 14:34:41 CEST

On Wed, 10 Apr 2002, Mads Toftum wrote:

Hmm... ved nærmere check, så skal det jo nok være:

#!/bin/bash
 for f in *
 do
    name=`basename $f`
    low=`echo $name | tr A-Z a-z` <--- s/fname/name/
    if [ $f != $low ]
    then
      mv $f $low
    fi
 done

Og det værker :)

--
We have normality -  anything you can't cope
with is therefore your own problem.
Received on Wed Apr 10 14:31:21 2002

This archive was generated by hypermail 2.1.8 : Tue Jul 19 2005 - 16:03:36 CEST