if [ "$#" != 1 ]; then usage exit 1 else cat $1 | ( while read line do read line2 swapmem[$I]=$line swapmem[$I+1]=$line2 I=`expr $I + 1` echo "# $I / $LEN" done ) | zenity --progress --width=400 heigth=100 --title="Fixing Dictionary" --text="running..." --percentage=0 fi