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