#!/bin/bash

export LANG=C
export LC_ALL=C

r=$1

find . -type d | \
while read i; do \
     nn=`echo $i | cyr-conv2.pl ${r}l` 2>/dev/null ; mv "$i" "$nn" ; done

find . -type d | \
while read i; do \
     nn=`echo $i | cyr-conv2.pl ${r}l` 2>/dev/null ; mv "$i" "$nn" ; done


find . -type f | \
while read i; do \
     nn=`echo $i | cyr-conv2.pl ${r}l` 2>/dev/null ; mv "$i" "$nn" ; done

