scriptname [ -l n ] [ -f n ] [ -s name ] [ -d name ]
[ -b name age ] [ -c ]
i have made a script to perform so tasks and i managed to complete the tasks for all the options
the problem i am facing is that i can run the scripts individually but i would like to make it such that it can accept multiple options and give me the appropriate output
e.g. scriptname -f 2 -s joe
and it gives me the output for the two option i have specified. i know i can use getopt but not sure how to apply it