#!/bin/bash for i in `ls -1 *.abook`; do iconv --from-code=ISO-8859-1 --to-code=UTF-8 $i > $i.1 ./sm2rc_addressbook.pl $i.1 done exit 0