#! /bin/sh -e # vim: set sw=4 sts=4 expandtab: # simple script to merge 2 or more PO files { msgcat --no-wrap "$1" while true; do shift if [ -z "$1" ]; then break else msgcat --no-wrap "$1" |sed -n -e '/^msgid "[^"]/,$p' fi done } | msguniq --use-first