A simple script that reads from stdin, prints to stdout while
skipping a list of line numbers specified in the arguments.
This is useful to skip a corrupted line in a journal without editing
$Id: //guest/lester_cheung/scripts/skiplines.py#2 $
$DateTime: 2013/05/15 23:06:51 $
$Author: lester_cheung $
User contributed content on the Perforce Public Depot is not
supported by Perforce, although it may be supported by its
author. This applies to all contributions even those submitted by
If you have any comments or need any help with the content of
this particular folder, please contact lcheung_AT_perforce.com,
and I will try to help.
if __name__ == '__main__':
n = 0
targets = map(int,sys.argv[1:])
for line in sys.stdin:
if n in targets:
Added comment and made file kxtext
A simple script that reads from stdin, prints to stdout while skipping a
list of line numbers specified in the arguments.