- LinuxShell no LinuxInterface de Linha de Comando (Linux)
- LinuxShell no LinuxShell ScriptVariáveis em Shell Script
Considere o seguinte trecho de script escrito no arquivo meu_script:
#!/bin/bash
# teste 1
echo $0 $#
Caso o script seja executado no prompt de um terminal bash como segue:
> bash meu_script teste 2
O terminal apresentará como saída: