In an bash shell script I am receiving a list of argument in $@ which are : a b c d a c e Depending of the argument I need to do something specific with a case structure. But I only want to do it for a b c d e
I should only use bash and not any other language...I can use awk for example
for argument in "$@"
do
case $argument in
a)
.....
Have tried many things but without success
Any help much appreciated