Hello,
This question may be simple for some, but I require some assistance:
I have a script which will be sent something like this:
Code:
-oFtest -oEexample@example.com
So in my script I have a variable containing:
Code:
-oFtest -oEexample@example.com
Within my script I need to seperate the different -o's (options).
So eventually I would end up with multiple variables:
Code:
FORMAT='test'
EMAIL='example@example.com'
So I know the different options I will be sent, so I need to search the intial variable for the options I know will be there, if they are then I need to extract them out and place them in the correct varaible. Any options I shouldn't be expecting I will need to ether ignore or place in there own 'TEMP' variable.
Make sense??
Any help would greatly be apprieciated.