Skip to content

Instantly share code, notes, and snippets.

View yehudalev's full-sized avatar
🏠
Working from home

Yehuda Levental yehudalev

🏠
Working from home
View GitHub Profile
@yehudalev
yehudalev / nl.py
Created June 26, 2016 12:35 — forked from niitsken/nl.py
import sys
args = len(sys.argv)
if args == 1:
print("Enter a file name below")
f = sys.stdin.readline().rstrip()
elif args == 2:
f = sys.argv[1]
else:
sys.exit("please enter the command this way: 'python nl.py [a file]'")