junitmsgfmt misc/translator/po/* | grep failure | grep -e "[^>:]*.po:[0-9]*" -o > translate-errors for line in $(cat translate-errors) do file=$(echo $line|cut -d':' -f1) from=$(echo $line|cut -d':' -f2) sed -i -e "$((from -6)),$((from))s/#,/#, fuzzy,/" $file done