remove-potcdate.sin revision 05436638acc7c010349a69c3395f1a57c642dc62
1f46ba292498d880686df43773225b840c02e0764leozwang@webrtc.org# Sed script that remove the POT-Creation-Date line in the header entry 2f46ba292498d880686df43773225b840c02e0764leozwang@webrtc.org# from a POT file. 3f46ba292498d880686df43773225b840c02e0764leozwang@webrtc.org# 4f46ba292498d880686df43773225b840c02e0764leozwang@webrtc.org# The distinction between the first and the following occurrences of the 5f46ba292498d880686df43773225b840c02e0764leozwang@webrtc.org# pattern is achieved by looking at the hold space. 6f46ba292498d880686df43773225b840c02e0764leozwang@webrtc.org/^"POT-Creation-Date: .*"$/{ 7f46ba292498d880686df43773225b840c02e0764leozwang@webrtc.orgx 8f46ba292498d880686df43773225b840c02e0764leozwang@webrtc.org# Test if the hold space is empty. 9f46ba292498d880686df43773225b840c02e0764leozwang@webrtc.orgs/P/P/ 10f46ba292498d880686df43773225b840c02e0764leozwang@webrtc.orgta 11f46ba292498d880686df43773225b840c02e0764leozwang@webrtc.org# Yes it was empty. First occurrence. Remove the line. 12f46ba292498d880686df43773225b840c02e0764leozwang@webrtc.orgg 13f46ba292498d880686df43773225b840c02e0764leozwang@webrtc.orgd 14f46ba292498d880686df43773225b840c02e0764leozwang@webrtc.orgbb 15f46ba292498d880686df43773225b840c02e0764leozwang@webrtc.org:a 16f46ba292498d880686df43773225b840c02e0764leozwang@webrtc.org# The hold space was nonempty. Following occurrences. Do nothing. 17f46ba292498d880686df43773225b840c02e0764leozwang@webrtc.orgx 18f46ba292498d880686df43773225b840c02e0764leozwang@webrtc.org:b 19f46ba292498d880686df43773225b840c02e0764leozwang@webrtc.org} 20f46ba292498d880686df43773225b840c02e0764leozwang@webrtc.org