wget https://mathgen.stats.ox.ac.uk/genetics_software/hapgen/download/builds/macosx_intel/v2.1.2/hapgen2_macosx_intel.tar.gz tar zxvf hapgen2_macosx_intel.tar.gz
This is a list of common mistakes and bad practices seen in assignments submitted for the Bioinformatics lesson.
Prefer using with instead of open/close
One bonus of using this method is that any files opened will be closed automatically after you are done. This leaves less to worry about during cleanup.