I have bash script which takes set of command line argument. Now I want to remove some of the argument that I received from user and pass it to other script. How can I achieve this.
remove_arts.sh
echo "Prints all args passed $*"
# Add logic to remove args value --native/-nv/--cross
my_app_args=$(command to store result in $*)
bash run_my_app.sh my_app_args
So when I run that script with
bash remove_arts.sh --native -nv --execute_rythm
After processing bash run_my_app.sh --execute_rythm
I have checked Replace one substring for another string in shell script which suggested to use
first=${first//Suzy/$second}
But I am not able to use $second
as empty string.