How to drop an argument (from the list of arguments) in a shell script? – unix.stackexchange.com 05:02 Posted by Unknown No Comments 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 Unknown
0 Comment to "How to drop an argument (from the list of arguments) in a shell script? – unix.stackexchange.com"
Post a Comment