Skip to content

Instantly share code, notes, and snippets.

@smackerdodi
smackerdodi / exist.py
Last active April 25, 2023 20:15
add parameter to wordlist
import sys
textfile=sys.argv[1]
param=sys.argv[2]
with open(textfile, "r+") as t:
for line in t:
if param in line:
print("It's already there")
break
else:
t.write(param + "\n")