pass argument to a program from another terminal code example
Example: terminal command as parameter
open /Applications/Utilities/Console.app "$(ls -arth Test*log | tail -1)"
open /Applications/Utilities/Console.app "$(ls -arth Test*log | tail -1)"