Skip to content

Instantly share code, notes, and snippets.

View ReeganArockiasmy's full-sized avatar
🎯
Focusing

Reegan ReeganArockiasmy

🎯
Focusing
View GitHub Profile
@bravegnu
bravegnu / head.py
Last active August 25, 2016 01:19
Implementation of head using docopt
"""
Usage: head [options] [FILE]...
-c K, --bytes=K print the first K bytes of each file;
with the leading `-', print all but the last
K bytes of each file
-n K, --lines=K print the first K lines instead of the first 10;
with the leading `-', print all but the last
K lines of each file [default: 10]
-q, --quiet, --silent never print headers giving file names