I'm trying to write a shell script that builds an iso image from an .asm file with several utilities. When you run the script from the command line it first asks the user where the file is and where the iso file should be. I want the script accept arguments the user passed as part of the command: ./mkiso foo.iso bar.asm? The two arguments would correspond to two variables, input and output. How do I do this? EDIT: I'm using Linux and my script is a bash script.
-
It depends on the shell you are using... Can you clarify OS, shell type (for example, "Linux, bash")?Floris– Floris2013-03-23 19:33:10 +00:00Commented Mar 23, 2013 at 19:33
Add a comment
|