emanuele6 1682924037 learn If you omit the learn in WORDS part of a for command, in "$@" is assumed; the semicolon between the variable name and do can also be omitted in that case; note that this is standard POSIX sh behaviour, not a bashism. Example: for x do sort -o "$x" -- "$x"; done is the same as for x in "$@"; do sort -o "$x" -- "$x"; done emanuele6 1682924070 forget emanuele6 1682924115 learn If you omit the in WORDS part of a for command, in "$@" is assumed which means the for command will loop the arguments of the script; the semicolon between the variable name and do can also be omitted in that case; note that this is standard POSIX sh behaviour, not a bashism. Example: for x do sort -o "$x" -- "$x"; done is the same as for x in "$@"; do sort -o "$x" -- "$x"; emanuele6 1682924125 forget emanuele6 1682924160 learn If you omit the in WORDS part of a for command, in "$@" is assumed which means the for command will loop the arguments of the script; the semicolon before do can also be omitted in that case; note that this is standard POSIX sh behaviour, not a bashism. Example: for x do sort -o "$x" -- "$x"; done is the same as for x in "$@"; do sort -o "$x" -- "$x"; done