#!/bin/sh while read line ; do echo $line | iconv -f koi8-r -t utf-7 | perl -p -e 's/^\+(.*)$/\&${1}-/' done