Nuacht

This post explains how to run a Python script in terminal or CMD. This is a quick and powerful way to access your programs and improve workflow.
How to Execute a File in a MacBook Terminal. The operating system your MacBook runs, OS X, is built on top of UNIX, and Terminal provides you with access to the underlying UNIX system commands.
Since it is said that a-shell can execute programs written in Python, C language, etc., try writing a Python program that displays the contents of 'test.txt' as a trial.