Los argumentos del script se asignan a $1 $2 ... $9 y más allá con ${10}. $0 es el nombre del script. "$@" se expande para separar los argumentos citados; "$*" se une a ellos. shift elimina $1 y vuelve a numerar, útil en bucles de análisis manual. getopts analiza las cadenas de opciones de valor estándar -a -f de forma portátil.
turno y getopts
Full content is available with a subscription.
Get full access to all courses on the platform for one year with a single payment.
▼
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.