tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 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[:-1]
|
||||
fileinput.close()
|
||||
Loading…
Add table
Add a link
Reference in a new issue