gibney.org : Technology : Programming : sed : Convert Filenames with sed


just a logo :)

search:


See as: raw | code

terms of service | imprint

gibney.org
is powered by m1d1





Convert Filenames with sed
(Entry Nr. 260, by user 1 | edit)
find |
while read file;
do
alt=`
echo "$file" |
iconv -f ISO_8859-15 -t UTF-8 |
grep -i [äöü]
`
if [ "$alt" != "" ]
then
echo alt: $alt
neu=`echo $alt | sed "s/ö/oe/g" | sed "s/ä/ae/g" | sed "s/ü/ue/g"`
echo neu: $neu
mv "$file" "$neu"
fi;
done;
Create a new entry at this position