Linux treats everything as a file and it is not mandatory to add extensions(.shor.bash) for your script. Though it is not mandatory, I would suggest you add an extension to your shell script, so you can come to know what type of file you are dealing with. When creating files in Lin...
function argumentsin Bash are treated aspositional parameters($1, $2..$9, ${10}, ${11}, and so on). This is no surprise considering howgetoptsworks. Do not use parentheses to call a function
.shellcheckrc .typos.toml AUTHORS CHANGELOG.md CONTRIBUTING.md COPYING Makefile.am README.md bash-completion-config-version.cmake.in bash-completion-config.cmake.in bash-completion.pc.in bash_completion bash_completion.sh.in configure.ac
while getopts ':bfh-A:BF' OPTION ; do case "$OPTION" in b ) sbar=yes ;; f ) sfoo=yes ;; h ) _usage ;; A ) sarguments=yes;sARG="$OPTARG" ;; B ) sbarfoo=yes ;; F ) sfoobar=yes ;; - ) [ $OPTIND -ge 1 ] && optind=$(expr $OPTIND - 1 ) || optind=$OPTIND ev...