#!/bin/bash langList=('en_US' 'es_ES' 'zh_CN') for i in ${langList[@]}; do targetFile="translations/lubuntu-update_$i.ts" if [ ! -e $targetFile ]; then echo "" > $targetFile echo "" >> $targetFile echo "" >> $targetFile fi done lupdate *.cpp *.h *.ui -ts translations/*