I have been writing a bunch of shell scripts that essentially wrap existing commands so I don't need to remember the intricate details for most of what I want to do.
I have a shell script that essentially builds parameters to call another executable. Some of the arguments should not be changed, but there are some that are used just by the shell script itself to determine which downstream executable to call or how it should be called.
If I have this:
I supposed I could always require the arguments to be properly ordered so that a simple call to shift will work, but if I don't want to require that, is there anyway I can remove the '--delete' argument altogether?
I have a shell script that essentially builds parameters to call another executable. Some of the arguments should not be changed, but there are some that are used just by the shell script itself to determine which downstream executable to call or how it should be called.
If I have this:
Code:
wrapper --delete arg1 arg2
wrapper arg1 arg2 --delete
I supposed I could always require the arguments to be properly ordered so that a simple call to shift will work, but if I don't want to require that, is there anyway I can remove the '--delete' argument altogether?