Is it possible to create what the Mac Finder specifies as a "Unix Executable File" and run it in Terminal like any other command instead of creating a .sh
or .command
file? If so how and where can I learn how to make them? If not, how can I create a .sh
file that can take options? For example, with the ls
command you can type ls -a
to list invisible files as well as visible ones. How can make an executable that will only execute certain code with a -a
option?
|
|||||||||||||
closed as too broad by slm♦, jlliagre, Anthon, terdon♦, jasonwryan Dec 3 '13 at 16:33There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question. |
|||||||||||||
|
Well...all you have to do is basically to chmod your file to have executable permissions. For example if you want to create a shell script, you don't need to have For a shell script you just have to write the header ( |
|||
|