Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import fileinput, sys
|
||||
|
||||
fname, start, count = sys.argv[1:4]
|
||||
start, count = int(start), int(count)
|
||||
|
||||
for line in fileinput.input(fname, inplace=1, backup='.orig'):
|
||||
if start <= fileinput.lineno() < start + count:
|
||||
pass
|
||||
else:
|
||||
print line.rstrip("\n")
|
||||
fileinput.close()
|
||||
Loading…
Add table
Add a link
Reference in a new issue