fork download
  1. #!/usr/bin/env bash
  2.  
  3. echo "Digite um número"
  4. read NUM
  5.  
  6. quintaParte=$[$NUM/5]
  7.  
  8. if [ $quintaParte -lt 50 || $quintaParte -gt 1000 ];then
  9. echo -ne $quintaParte
  10. fi
  11.  
Success #stdin #stdout #stderr 0.01s 5272KB
stdin
Standard input is empty
stdout
Digite um número
stderr
./prog.sh: line 6: /5: syntax error: operand expected (error token is "/5")
./prog.sh: line 8: [: missing `]'
./prog.sh: line 8: -gt: command not found