1*75f6d617Schristos# Sed script that remove the POT-Creation-Date line in the header entry 2*75f6d617Schristos# from a POT file. 3*75f6d617Schristos# 4*75f6d617Schristos# The distinction between the first and the following occurrences of the 5*75f6d617Schristos# pattern is achieved by looking at the hold space. 6*75f6d617Schristos/^"POT-Creation-Date: .*"$/{ 7*75f6d617Schristosx 8*75f6d617Schristos# Test if the hold space is empty. 9*75f6d617Schristoss/P/P/ 10*75f6d617Schristosta 11*75f6d617Schristos# Yes it was empty. First occurrence. Remove the line. 12*75f6d617Schristosg 13*75f6d617Schristosd 14*75f6d617Schristosbb 15*75f6d617Schristos:a 16*75f6d617Schristos# The hold space was nonempty. Following occurrences. Do nothing. 17*75f6d617Schristosx 18*75f6d617Schristos:b 19*75f6d617Schristos} 20