open file in terminal mac code example
Example 1: open a file in from terminal
cat <path/your_file>
Example 2: open a file mac terminal
To use default application:
$ open ~/Desktop/filename.mp4
To use a specific application:
$ open -a "QuickTime Player" ~/Desktop/filename.mp4