#! /bin/sh if [ "$1" = --apply ]; then shift for x in *.po; do rosetta-merge --apply $1 ${x%.*}; done else for x in *.po; do rosetta-merge $1 ${x%.*} | view -; done fi