How to drop an argument (from the list of arguments) in a shell script? – unix.stackexchange.com

I have the following (MWE) shell script foo: #!/bin/bash ARGS=("$@") # all arguments ## => if it exists, we need to drop the argument "-D" here ls -l ${ARGS[@]} | sort -fk8 If foo is called with ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "How to drop an argument (from the list of arguments) in a shell script? – unix.stackexchange.com"