5 kx # Sed script that remove the POT-Creation-Date line in the header entry
5 kx # from a POT file.
5 kx #
5 kx # The distinction between the first and the following occurrences of the
5 kx # pattern is achieved by looking at the hold space.
5 kx /^"POT-Creation-Date: .*"$/{
5 kx x
5 kx # Test if the hold space is empty.
5 kx s/P/P/
5 kx ta
5 kx # Yes it was empty. First occurrence. Remove the line.
5 kx g
5 kx d
5 kx bb
5 kx :a
5 kx # The hold space was nonempty. Following occurrences. Do nothing.
5 kx x
5 kx :b
5 kx }