[gull] Problèmes charactères MacOSX

Daniel Cordey dc at mjt.ch
Fri Sep 10 17:11:01 CEST 2004


On Friday 10 September 2004 17:02, Daniel Cordey wrote:

> La commande 'find' peut extraire une arborescence. Voila, je modifie ton
> script :

AIE................ STOP ..............

J'ai oublie un truc important... donc le script est :

#!/bin/sh
find . -print |\
while read path
do
    dir=$(dirname "${path}")
    file=$(basename "${path}")
    if [ ! -f "${path}" ]; then continue; fi
    lc=$(echo "${file}" | tr '?\[\]/\\=+<>;:",|*'  '-')
    if [ ${lc} != "${file}" ]
    then
 newfile="${dir}/${lc}"
 touch "${newfile}"
 test $? = 0 && mv "${path}" "${newfile}"
    fi
done

Daniel




More information about the gull mailing list