Lets say that my script name is test.sh. What i want to do is when I give the command
./tool.sh -f <file>
where file is a file of events(ex events.dat) to do something with awk and when i give the command
./tool.sh -f <file> -id
to do something else. How can I achieve that?