Skip to content

Instantly share code, notes, and snippets.

@krmdl
krmdl / remove-duplicates.py
Last active September 26, 2022 22:37 — forked from rivermont/remove-duplicates.py
Simple Python script to remove duplicate lines from a file.
import sys
import time as t
def get_time():
return t.strftime('%H:%M:%S')
try:
fileName = sys.argv[1]
except:
print('You didn\'t supply a valid filename.')
@krmdl
krmdl / remove-duplicates.py
Created September 26, 2022 22:37 — forked from rivermont/remove-duplicates.py
Simple Python script to remove duplicate lines from a file.
'''
Compares all lines in a given file and removes duplicates.
'''
import sys
import time as t
def get_time():
return t.strftime('%H:%M:%S')