Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use terminal to open a file by Excel on Mac

Now, I can open a file by Sublime Text just input -subl [path] in MacOS terminal.

Can I do something of the kind when using Excel?

Thx.

like image 404
Robottdag Avatar asked Dec 15 '17 01:12

Robottdag


People also ask

How do I open an Excel file in Terminal?

Search the “sample file. xlc” file and click on the “Open” button located at the top right corner. And the excel file “sample file. xlc” will be opened, and it will display all the file data in the “LibreOffice Calc” app.

How do I open an Excel file on my Mac?

Open a spreadsheet on a Mac: For a Numbers spreadsheet, double-click the spreadsheet name or thumbnail, or drag it to the Numbers icon in the Dock or in the Applications folder. For an Excel spreadsheet, drag it to the Numbers icon (double-clicking the file opens Excel if you have that app).

How do I open a file in Terminal Mac?

Instead of typing the full path, you can drag the script onto the Terminal window from Finder. Then, to execute, just enter /path/to/script . Again, you can drag and drop the file onto the Terminal window. This syntax should execute the script using the correct shell as defined on the first line of the script.


1 Answers

Open a file by default application, just open [path] If want to change, can use open -a [app-path] [file-path]

like image 103
Robottdag Avatar answered Oct 09 '22 10:10

Robottdag