#!/bin/bash for x in $(find $1 -name "*.po"); do en_file=$(echo $x | sed -e "s%\/qcv\/%/en-GB/%g;s%^qcv_po%en_pot%g;s%po$%pot%g") ca_file=$(echo $x | sed -e "s%\/qcv\/%/ca/%g;s%^qcv_po%ca_po%g") es_file=$(echo $x | sed -e "s%\/qcv\/%/es-ES/%g;s%^qcv_po%es_po%g") if [ ! -e "$qcv_file" ]; then mixqcv -c "$ca_file" -e "$es_file" -q "$x" -p "$en_file" -o "$x.new" fi done