mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-22 20:45:11 +00:00
magic.
This commit is contained in:
parent
92fe214496
commit
3c305b44a6
4 changed files with 14718 additions and 9409 deletions
1263
po/b/numbers
Normal file
1263
po/b/numbers
Normal file
File diff suppressed because it is too large
Load diff
25
po/b/remdup.py
Normal file
25
po/b/remdup.py
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
import sys
|
||||||
|
|
||||||
|
if len(sys.argv)<3:
|
||||||
|
print("provide a file path and list of duplicates")
|
||||||
|
exit()
|
||||||
|
|
||||||
|
with open(sys.argv[2]) as l:
|
||||||
|
numbersS=l.read().splitlines()
|
||||||
|
|
||||||
|
numbers=[]
|
||||||
|
|
||||||
|
for i in numbersS:
|
||||||
|
numbers.append(int(i))
|
||||||
|
|
||||||
|
with open(sys.argv[1]) as f:
|
||||||
|
lines=f.read().splitlines()
|
||||||
|
|
||||||
|
for i in numbers:
|
||||||
|
curLine=i-1
|
||||||
|
while lines[curLine]:
|
||||||
|
lines[curLine]=str()
|
||||||
|
curLine+=1
|
||||||
|
|
||||||
|
for i in lines:
|
||||||
|
print(i)
|
13374
po/b/russian.po
13374
po/b/russian.po
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue