1 2 3 4
#!/bin/sh echo "this script adds 'FOO' everywhere" perl -pi -e "s/<translation.*/<translation>FOO<\/translation>/" *.ts echo "all strings replaced with 'FOO'"