I have a list of 100+ folders in a linux at a folder path "files/data" where I already have basic script "list.sh".
for d in files/data/*
do
echo $d
done
When I run it...
sh list.sh
It is listing all the 100+ folders (amazon, apple, cola, pepsi, and etc...) in side the "files/data" folder. But I am looking for some if command implementation to achieve the bellow.
When I call...
sh list.sh --brand=apple
Then it should only list "apple" and if i call...
sh list.sh --brand=all
Then it should list all the 100+ folders (amazon, apple, cola, pepsi, and etc...).
Thanks.