filenames kai spaces

kostas papadakis kpapad at tee.gr
Mon Mar 23 14:36:35 EET 1998


exo ftia3ei to e3is gia na allazo to filename
me to extension enos arxeiou:

for i in `ls * -1`
do
        name=`echo $i | awk -F. '{ print $1 }'`
        ext=`echo $i | awk -F. '{ print $2 }'`

        if [ $1 == $name ]; then
                mv $name.$ext $ext.$name
        fi
        if [ $1 == $ext ]; then
                mv $name.$ext $ext.$name
        fi
done

alla den leitourgei sosta ta filenames pou exoun
space mesa tous. diladi ayta pou 8eloun " i ' sto shell
sigekrimena mou bgazei to e3is:
/usr/local/bin/xchgnmext: [: MOD: unary operator expected
kammia idea ?
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at argos.hol.gr
Ta archives tis listas einai sto http://www.argos.hol.gr/lists :
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list