Script accept unlimited number of options.
When you want the script to accept option you would do this something $1 right?
For example for a 'called remove':
rm -i $1
Then execute it to remove files:
remove file file2
The script would remove the file given in the first option only right, so I add
rm -i $1 $2
so that the script can remove the second file, but the process would be endless.
How do I have the script to accept unlimited number of options? Thanks.