Project

General

Profile

Task #62892 ยป searchReplace.sh

Eugene Kenah Djomo, 2014-11-13 11:29

 
rm list.txt
find . -name \*.xlf >> list.txt
vartime=$(date +"%s")
echo $vartime

while read var
do
vartime=$((vartime+1))
echo $vartime
sed -i .bak 's#<xliff version="1.0"#<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff"#g' $var
sed -i .bak 's#<file#<file id="'$vartime'"#g' $var

done < list.txt
    (1-1/1)